aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2021-02-01 08:01:14 +0000
committernicm <nicm>2021-02-01 08:01:14 +0000
commit509221520c87510016f5c90aeea0d4dcc4b74a98 (patch)
treea006a5c8f78a2f0c725f9c11335fed1a21e8fb54 /tmux.1
parent255802d8d7357bf985bf2e4221eac8ab64b348ea (diff)
downloadrtmux-509221520c87510016f5c90aeea0d4dcc4b74a98.tar.gz
rtmux-509221520c87510016f5c90aeea0d4dcc4b74a98.tar.bz2
rtmux-509221520c87510016f5c90aeea0d4dcc4b74a98.zip
Add a no-detached choice to detach-on-destroy which detaches only if
there are no other detached sessions to switch to, from Sencer Selcuk in GitHub issue 2553.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.16
1 files changed, 5 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index 247f0fb6..12d555e5 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3575,12 +3575,16 @@ The default is 80x24.
If enabled and the session is no longer attached to any clients, it is
destroyed.
.It Xo Ic detach-on-destroy
-.Op Ic on | off
+.Op Ic off | on | no-detached
.Xc
If on (the default), the client is detached when the session it is attached to
is destroyed.
If off, the client is switched to the most recently active of the remaining
sessions.
+If
+.Ic no-detached ,
+the client is detached only if there are no detached sessions; if detached
+sessions exist, the client is switched to the most recently active.
.It Ic display-panes-active-colour Ar colour
Set the colour used by the
.Ic display-panes