aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2021-01-04 08:43:16 +0000
committernicm <nicm>2021-01-04 08:43:16 +0000
commitbd0fb22f0a206a73ec3f41322571d56d9d7d7c5d (patch)
treea66752a7b2677b92bc4eec51a514b005ce0b9540 /tmux.1
parent606bd5f8c6be326ea2e4746de5d5e007fd04eef8 (diff)
downloadrtmux-bd0fb22f0a206a73ec3f41322571d56d9d7d7c5d.tar.gz
rtmux-bd0fb22f0a206a73ec3f41322571d56d9d7d7c5d.tar.bz2
rtmux-bd0fb22f0a206a73ec3f41322571d56d9d7d7c5d.zip
Add a variant of remain-on-exit that only keeps the pane if the program
failed, GitHub issue 2513.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.15
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index 1376df95..941305e3 100644
--- a/tmux.1
+++ b/tmux.1
@@ -4181,10 +4181,13 @@ interactive application starts and restores it on exit, so that any output
visible before the application starts reappears unchanged after it exits.
.Pp
.It Xo Ic remain-on-exit
-.Op Ic on | off
+.Op Ic on | off | failed
.Xc
A pane with this flag set is not destroyed when the program running in it
exits.
+If set to
+.Ic failed ,
+then only when the program exit status is not zero.
The pane may be reactivated with the
.Ic respawn-pane
command.