mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
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.
This commit is contained in:
17
tmux.1
17
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
|
||||
|
Reference in New Issue
Block a user