aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-24 00:43:28 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-24 00:43:28 +0000
commitf339cfd31563aaae0ae94361228bb697c83aa3bf (patch)
treee757507211a47b2cd9c8e2e782cc774ecfa96e29 /tmux.1
parentc5239c59846c2d09725d4b1db0e728b3376c3998 (diff)
downloadrtmux-f339cfd31563aaae0ae94361228bb697c83aa3bf.tar.gz
rtmux-f339cfd31563aaae0ae94361228bb697c83aa3bf.tar.bz2
rtmux-f339cfd31563aaae0ae94361228bb697c83aa3bf.zip
Add -A flag to new-session to make it behave like attach-session if the session
exists. If -A is used, -D behaves like -d to attach-session.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.117
1 files changed, 16 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index 0f385feb..8e536b67 100644
--- a/tmux.1
+++ b/tmux.1
@@ -670,7 +670,7 @@ command.
Lock all clients attached to
.Ar target-session .
.It Xo Ic new-session
-.Op Fl d
+.Op Fl AdD
.Op Fl n Ar window-name
.Op Fl s Ar session-name
.Op Fl t Ar target-session
@@ -701,6 +701,21 @@ If run from a terminal, any
.Xr termios 4
special characters are saved and used for new windows in the new session.
.Pp
+The
+.Fl A
+flag makes
+.Ic new-session
+behave like
+.Ic attach-session
+if
+.Ar session-name
+already exists; in the case,
+.Fl D
+behaves like
+.Fl d
+to
+.Ic attach-session .
+.Pp
If
.Fl t
is given, the new session is