summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-17 15:03:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-17 15:03:11 +0000
commitce53936a2b56521903d69bac565391e37ad7e115 (patch)
tree5a77d399e686fe3db9687c157b109d5945eaf38e /tmux.1
parent1938c994e7d9a27741735e6821217a16a134f039 (diff)
Tidy up new-session and attach-session and change them to work from inside
tmux, switching the current client to the new or requested session. Written with Josh Elsasser.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.16
1 files changed, 5 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index 34501931..dcc30a25 100644
--- a/tmux.1
+++ b/tmux.1
@@ -596,7 +596,11 @@ The following commands are available:
.Op Fl t Ar target-session
.Xc
.D1 (alias: Ic attach )
-Create a new client in the current terminal and attach it to a session.
+If run from outside
+.Nm ,
+create a new client in the current terminal and attach it to
+.Ar target-session .
+If used from inside, switch the current client.
If
.Fl d
is specified, any other clients attached to the session are detached.