diff options
author | nicm <nicm> | 2024-02-13 08:10:23 +0000 |
---|---|---|
committer | nicm <nicm> | 2024-02-13 08:10:23 +0000 |
commit | 40b97b1715182b0ab0274b0c402b34e2cba98f04 (patch) | |
tree | c86199966bdea346977810c57693cfa502a92408 /tmux.1 | |
parent | 4bdb855020d266ea0a480a53e13c806fcaad9b45 (diff) |
Add two new values for the destroy-unattached option to destroy sessions
only if they are not members of sessions groups, from Mark Huang, GitHub
issue 3806.
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -4023,10 +4023,20 @@ The value is the width and height separated by an character. The default is 80x24. .It Xo Ic destroy-unattached -.Op Ic on | off +.Op Ic off | on | keep-last | keep-group .Xc -If enabled and the session is no longer attached to any clients, it is -destroyed. +If +.Ic on , +destroy the session after the last client has detached. +If +.Ic off +(the default), leave the session orphaned. +If +.Ic keep-last , +destroy the session only if it is in a group and has other sessions in that group. +If +.Ic keep-group , +destroy the session unless it is in a group and is the only session in that group. .It Xo Ic detach-on-destroy .Op Ic off | on | no-detached | previous | next .Xc |