Add a variant of remain-on-exit that only keeps the pane if the program

failed, GitHub issue 2513.
This commit is contained in:
nicm
2021-01-04 08:43:16 +00:00
parent 606bd5f8c6
commit bd0fb22f0a
3 changed files with 22 additions and 7 deletions

5
tmux.1
View File

@ -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.