From bd0fb22f0a206a73ec3f41322571d56d9d7d7c5d Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 4 Jan 2021 08:43:16 +0000 Subject: Add a variant of remain-on-exit that only keeps the pane if the program failed, GitHub issue 2513. --- tmux.1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tmux.1') 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. -- cgit