summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-04-05 19:37:01 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-04-05 19:37:01 +0000
commit5d519ba526feffb08003e2c11c7230a6f2cc1d9e (patch)
tree446bc8a565b04861e848231e7d25dd49b1c96d8f /tmux.1
parentf16ea60cc0eceeb1e0bd580129d99aff4423ec19 (diff)
Add a flag to cmd_find_session so that attach-session can prefer
unattached sessions when choosing the most recently used (if -t is not given). Suggested by claudio@.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.111
1 files changed, 11 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 3b563b2c..7c5ea455 100644
--- a/tmux.1
+++ b/tmux.1
@@ -562,6 +562,17 @@ If no server is started,
.Ic attach-session
will attempt to start it; this will fail unless sessions are created in the
configuration file.
+.Pp
+The
+.Ar target-session
+rules for
+.Ic attach-session
+are slightly adjusted: if
+.Nm
+needs to select the most recently used session, it will prefer the most
+recently used
+.Em unattached
+session.
.It Xo Ic detach-client
.Op Fl P
.Op Fl t Ar target-client