Add -E to detach-client to exec a command to replace the client instead

of exiting it, useful if tmux wasn't exec'd itself. From Jenna Magius.
This commit is contained in:
nicm
2017-01-13 10:12:12 +00:00
parent 24cba5907b
commit 95950bf668
5 changed files with 74 additions and 7 deletions

6
tmux.1
View File

@ -724,6 +724,7 @@ is used, the
option will not be applied.
.It Xo Ic detach-client
.Op Fl aP
.Op Fl E Ar shell-command
.Op Fl s Ar target-session
.Op Fl t Ar target-client
.Xc
@ -740,6 +741,11 @@ If
.Fl P
is given, send SIGHUP to the parent process of the client, typically causing it
to exit.
With
.Fl E ,
run
.Ar shell-command
to replace the client.
.It Ic has-session Op Fl t Ar target-session
.D1 (alias: Ic has )
Report an error and exit with 1 if the specified session does not exist.