summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2017-01-13 10:12:12 +0000
committernicm <nicm>2017-01-13 10:12:12 +0000
commit95950bf668cee5a80cd9bbe28d7134a52a240426 (patch)
tree37618ea72fabbd151d60519139e9d816124ca170 /tmux.1
parent24cba5907b5006363ac7f83f31801153f9c23b37 (diff)
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.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.16
1 files changed, 6 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 4bc82cd8..b641909f 100644
--- a/tmux.1
+++ b/tmux.1
@@ -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.