summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-24 09:58:40 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-24 09:58:40 +0000
commit14fad6a5ccd6d5f2b9e372975e0062219853f891 (patch)
tree144c54008dae40e6be3df8559c4f8eb2b295e070 /tmux.1
parentc71844de631186f3df7ff5a6e3aab613da1e4853 (diff)
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.124
1 files changed, 22 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 33902d1b..b0d6b4e7 100644
--- a/tmux.1
+++ b/tmux.1
@@ -666,7 +666,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
@@ -697,6 +697,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
@@ -1568,7 +1583,7 @@ Rename the current window, or the window at
if specified, to
.Ar new-name .
.It Xo Ic resize-pane
-.Op Fl DLRU
+.Op Fl DLRUZ
.Op Fl t Ar target-pane
.Op Fl x Ar width
.Op Fl y Ar height
@@ -1592,6 +1607,11 @@ or
The
.Ar adjustment
is given in lines or cells (the default is 1).
+.Pp
+With
+.Fl Z ,
+the active pane is toggled between occupying the whole of the window and its
+normal position in the layout.
.It Xo Ic respawn-pane
.Op Fl k
.Op Fl t Ar target-pane