diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-01-13 10:12:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-01-13 10:12:13 +0000 |
commit | df7669d613887e329e34f9e6ef5a3c076023990a (patch) | |
tree | 1f9ab953958408f6cbe69a65c51980c8b62a42b9 /usr.bin/tmux/tmux.1 | |
parent | 3b59fd0c092b6e6705f0ddd99438bc35d391ff4c (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 'usr.bin/tmux/tmux.1')
-rw-r--r-- | usr.bin/tmux/tmux.1 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index 6f951e11c3e..ab3d3d5fc84 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.524 2017/01/11 16:09:57 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.525 2017/01/13 10:12:12 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 11 2017 $ +.Dd $Mdocdate: January 13 2017 $ .Dt TMUX 1 .Os .Sh NAME @@ -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. |