tmuxtmuxOptions, hooks and formats

Choose documentation 1

3.7c

tmux catalog version

Latest (3.7c) 3.7c 3.2a
English

option tmux3.7c

destroy-unattached

If on, destroy the session after the last client has detached.

Scope
session
Type
Choice
Default
off
Values
off on keep-last keep-group
Set
set-option destroy-unattached value
Read
show-options destroy-unattached

Description#

If on, destroy the session after the last client has detached. If off (the default), leave the session orphaned. If keep-last, destroy the session only if it is in a group and has other sessions in that group. If keep-group, destroy the session unless it is in a group and is the only session in that group.

Releases#

  • tmux 3.7c : type flag to choice; values now off, on, keep-last, keep-group
  • tmux 3.2a : present

Source#

Defined in
options-table.c:618
C source reference
options_table
CLI Manual
Original manual entry

Used by#

Library documentation that names this option.

Rust
options.generated.DESTROY_UNATTACHED
Go
tmux.Connection, tmux.DestroyUnattached, tmux.GlobalSessionScope.SetDestroyUnattached, tmux.Session.SetDestroyUnattached, tmux.SessionOptionValues.DestroyUnattached
C#
LibTmux.Session.HoldWaitClientAsync
Esc

Type to search.

Reference preview Open reference