Add new-session -X and attach-session -x to send SIGHUP to parent when

detaching (like detach-client -P). From Colin Watson in GitHub issue
1773.
This commit is contained in:
nicm
2019-06-03 18:28:37 +00:00
parent 900238a306
commit 4ca1de1b8b
4 changed files with 35 additions and 15 deletions

14
tmux.1
View File

@ -918,7 +918,7 @@ section.
The following commands are available to manage clients and sessions:
.Bl -tag -width Ds
.It Xo Ic attach-session
.Op Fl dEr
.Op Fl dErx
.Op Fl c Ar working-directory
.Op Fl t Ar target-session
.Xc
@ -931,6 +931,10 @@ If used from inside, switch the current client.
If
.Fl d
is specified, any other clients attached to the session are detached.
If
.Fl x
is given, send SIGHUP to the parent process of the client as well as
detaching the client, typically causing it to exit.
.Fl r
signifies the client is read-only (only keys bound to the
.Ic detach-client
@ -1048,7 +1052,7 @@ command.
Lock all clients attached to
.Ar target-session .
.It Xo Ic new-session
.Op Fl AdDEP
.Op Fl AdDEPX
.Op Fl c Ar start-directory
.Op Fl F Ar format
.Op Fl n Ar window-name
@ -1105,6 +1109,12 @@ already exists; in this case,
behaves like
.Fl d
to
.Ic attach-session ,
and
.Fl X
behaves like
.Fl x
to
.Ic attach-session .
.Pp
If