Server Options
Server options affect the entire tmux server and all sessions.backspace
Type: KeyDefault:
^? (ASCII 127)Description: The key to send for backspace.
buffer-limit
Type: NumberRange: 1 to INT_MAX
Default: 50
Description: The maximum number of automatic buffers. When this is reached, the oldest buffer is deleted.
command-alias
Type: Array of stringsDefault:
split-pane=split-window,splitp=split-window,server-info=show-messages -JT,info=show-messages -JT,choose-window=choose-tree -w,choose-session=choose-tree -sDescription: Array of command aliases. Each entry is an alias and a command separated by ’=‘.
copy-command
Type: StringDefault: "" (empty)
Description: Shell command run when text is copied. If empty, no command is run.
default-client-command
Type: CommandDefault:
new-sessionDescription: Default command to run when tmux is run without a command.
default-terminal
Type: StringDefault:
tmux-256color (varies by build)Description: Default for the ‘TERM’ environment variable.
editor
Type: StringDefault:
/usr/bin/viDescription: Editor run to edit files.
escape-time
Type: NumberRange: 0 to INT_MAX
Default: 10 milliseconds
Description: Time to wait before assuming a key is Escape.
exit-empty
Type: FlagDefault: on
Description: Whether the server should exit if there are no sessions.
exit-unattached
Type: FlagDefault: off
Description: Whether the server should exit if there are no attached clients.
extended-keys
Type: ChoiceChoices: off, on, always
Default: off
Description: Whether to request extended key sequences from terminals that support it.
extended-keys-format
Type: ChoiceChoices: csi-u, xterm
Default: xterm
Description: The format of emitted extended key sequences.
focus-events
Type: FlagDefault: off
Description: Whether to send focus events to applications.
get-clipboard
Type: ChoiceChoices: off, buffer, request, both
Default: buffer
Description: When an application requests the clipboard, whether to ignore the request (‘off’); respond with the newest buffer (‘buffer’); request the clipboard from the most recently used terminal (‘request’); or to request the clipboard, create a buffer, and send it to the application (‘both’).
history-file
Type: StringDefault: "" (empty)
Description: Location of the command prompt history file. Empty does not write a history file.
input-buffer-size
Type: NumberDefault: 65536 bytes
Description: Number of bytes accepted in a single input before dropping.
message-limit
Type: NumberRange: 0 to INT_MAX
Default: 1000
Description: Maximum number of server messages to keep.
prefix-timeout
Type: NumberRange: 0 to INT_MAX
Default: 0 milliseconds
Description: The timeout for the prefix key if no subsequent key is pressed. Zero means disabled.
prompt-history-limit
Type: NumberRange: 0 to INT_MAX
Default: 100
Description: Maximum number of commands to keep in history.
set-clipboard
Type: ChoiceChoices: off, external, on
Default: external
Description: Whether to attempt to set the system clipboard (‘on’ or ‘external’) and whether to allow applications to create paste buffers with an escape sequence (‘on’ only).
terminal-features
Type: Array of stringsDefault:
xterm*:clipboard:ccolour:cstyle:focus:title,screen*:title,rxvt*:ignorefkeysDescription: List of terminal features, used if they cannot be automatically detected.
terminal-overrides
Type: Array of stringsDefault:
linux*:AX@Description: List of terminal capabilities overrides.
user-keys
Type: Array of stringsDefault: "" (empty)
Description: User key assignments. Each sequence in the list is translated into a key: ‘User0’, ‘User1’ and so on.
variation-selector-always-wide
Type: FlagDefault: on
Description: If the Unicode VS16 codepoint should always be treated as a wide character.
Session Options
Session options apply to individual sessions.activity-action
Type: ChoiceChoices: none, any, current, other
Default: other
Description: Action to take on an activity alert.
assume-paste-time
Type: NumberRange: 0 to INT_MAX
Default: 1 millisecond
Description: Maximum time between input to assume it is pasting rather than typing.
base-index
Type: NumberRange: 0 to INT_MAX
Default: 0
Description: Default index of the first window in each session.
bell-action
Type: ChoiceChoices: none, any, current, other
Default: any
Description: Action to take on a bell alert.
default-command
Type: StringDefault: "" (empty)
Description: Default command to run in new panes. If empty, a shell is started.
default-shell
Type: StringDefault:
/bin/shDescription: Location of default shell.
default-size
Type: StringPattern:
[0-9]*x[0-9]*Default:
80x24Description: Initial size of new sessions.
destroy-unattached
Type: ChoiceChoices: off, on, keep-last, keep-group
Default: off
Description: Whether to destroy sessions when they have no attached clients, or keep the last session whether in the group.
detach-on-destroy
Type: ChoiceChoices: off, on, no-detached, previous, next
Default: on
Description: Whether to detach when a session is destroyed, or switch the client to another session if any exist.
display-panes-active-colour
Type: ColourDefault: colour 1 (red)
Description: Colour of the active pane for ‘display-panes’.
display-panes-colour
Type: ColourDefault: colour 4 (blue)
Description: Colour of not active panes for ‘display-panes’.
display-panes-time
Type: NumberRange: 1 to INT_MAX
Default: 1000 milliseconds
Description: Time for which ‘display-panes’ should show pane numbers.
display-time
Type: NumberRange: 0 to INT_MAX
Default: 750 milliseconds
Description: Time for which status line messages should appear.
focus-follows-mouse
Type: FlagDefault: off
Description: Whether moving the mouse into a pane selects it.
history-limit
Type: NumberRange: 0 to INT_MAX
Default: 2000 lines
Description: Maximum number of lines to keep in the history for each pane. If changed, the new value applies only to new panes.
initial-repeat-time
Type: NumberRange: 0 to 2000000
Default: 0 milliseconds
Description: Time to wait for a key binding to repeat the first time the key is pressed, if it is bound with the ‘-r’ flag. Subsequent presses use the ‘repeat-time’ option.
key-table
Type: StringDefault:
rootDescription: Default key table. Key presses are first looked up in this table.
lock-after-time
Type: NumberRange: 0 to INT_MAX
Default: 0 seconds
Description: Time after which a client is locked if not used.
message-command-style
Type: StyleDefault:
bg=black,fg=yellowDescription: Style of the command prompt when in command mode, if ‘mode-keys’ is set to ‘vi’.
message-line
Type: ChoiceChoices: 0, 1, 2, 3, 4
Default: 0
Description: Position (line) of messages and the command prompt.
message-style
Type: StyleDefault:
bg=yellow,fg=blackDescription: Style of messages and the command prompt.
mouse
Type: FlagDefault: off
Description: Whether the mouse is recognised and mouse key bindings are executed. Applications inside panes can use the mouse even when ‘off’.
prefix
Type: KeyDefault:
C-bDescription: The prefix key.
prefix2
Type: KeyDefault: None
Description: A second prefix key.
renumber-windows
Type: FlagDefault: off
Description: Whether windows are automatically renumbered rather than leaving gaps.
repeat-time
Type: NumberRange: 0 to 2000000
Default: 500 milliseconds
Description: Time to wait for a key binding to repeat, if it is bound with the ‘-r’ flag.
set-titles
Type: FlagDefault: off
Description: Whether to set the terminal title, if supported.
set-titles-string
Type: StringDefault:
#S:#I:#W - "#T" #{session_alerts}Description: Format of the terminal title to set.
silence-action
Type: ChoiceChoices: none, any, current, other
Default: other
Description: Action to take on a silence alert.
status
Type: ChoiceChoices: off, on, 2, 3, 4, 5
Default: on
Description: Number of lines in the status line.
status-interval
Type: NumberRange: 0 to INT_MAX
Default: 15 seconds
Description: Number of seconds between status line updates.
status-justify
Type: ChoiceChoices: left, centre, right, absolute-centre
Default: left
Description: Position of the window list in the status line.
status-keys
Type: ChoiceChoices: emacs, vi
Default: emacs
Description: Key set to use at the command prompt.
status-left
Type: StringDefault:
[#{session_name}] Description: Contents of the left side of the status line.
status-left-length
Type: NumberRange: 0 to SHRT_MAX
Default: 10
Description: Maximum width of the left side of the status line.
status-left-style
Type: StyleDefault:
defaultDescription: Style of the left side of the status line.
status-position
Type: ChoiceChoices: top, bottom
Default: bottom
Description: Position of the status line.
status-right
Type: StringDefault:
#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}"#{=21:pane_title}" %H:%M %d-%b-%yDescription: Contents of the right side of the status line.
status-right-length
Type: NumberRange: 0 to SHRT_MAX
Default: 40
Description: Maximum width of the right side of the status line.
status-right-style
Type: StyleDefault:
defaultDescription: Style of the right side of the status line.
status-style
Type: StyleDefault:
bg=green,fg=blackDescription: Style of the status line.
update-environment
Type: Array of stringsDefault:
DISPLAY KRB5CCNAME MSYSTEM SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITYDescription: List of environment variables to update in the session environment when a client is attached.
visual-activity
Type: ChoiceChoices: off, on, both
Default: off
Description: How activity alerts should be shown: a message (‘on’), a message and a bell (‘both’) or nothing (‘off’).
visual-bell
Type: ChoiceChoices: off, on, both
Default: off
Description: How bell alerts should be shown: a message (‘on’), a message and a bell (‘both’) or nothing (‘off’).
visual-silence
Type: ChoiceChoices: off, on, both
Default: off
Description: How silence alerts should be shown: a message (‘on’), a message and a bell (‘both’) or nothing (‘off’).
word-separators
Type: StringDefault:
!"#$%&'()*+,-./:;<=>?@[\\]^{|}~`Description: Characters considered to separate words.
Window Options
Window options apply to individual windows.aggressive-resize
Type: FlagDefault: off
Description: When ‘window-size’ is ‘smallest’, whether the maximum size of a window is the smallest attached session where it is the current window (‘on’) or the smallest session it is linked to (‘off’).
allow-rename
Type: FlagDefault: off
Scope: Window or pane
Description: Whether applications are allowed to use the escape sequence to rename windows.
allow-set-title
Type: FlagDefault: on
Scope: Window or pane
Description: Whether applications are allowed to use the escape sequence to set the pane title.
alternate-screen
Type: FlagDefault: on
Scope: Window or pane
Description: Whether applications are allowed to use the alternate screen.
automatic-rename
Type: FlagDefault: on
Description: Whether windows are automatically renamed.
automatic-rename-format
Type: StringDefault:
#{?pane_in_mode,[tmux],#{pane_current_command}}#{?pane_dead,[dead],}Description: Format used to automatically rename windows.
clock-mode-colour
Type: ColourDefault: colour 4 (blue)
Description: Colour of the clock in clock mode.
clock-mode-style
Type: ChoiceChoices: 12, 24, 12-with-seconds, 24-with-seconds
Default: 24
Description: Time format of the clock in clock mode.
copy-mode-match-style
Type: StyleDefault:
bg=cyan,fg=blackDescription: Style of search matches in copy mode.
copy-mode-current-match-style
Type: StyleDefault:
bg=magenta,fg=blackDescription: Style of the current search match in copy mode.
copy-mode-mark-style
Type: StyleDefault:
bg=red,fg=blackDescription: Style of the marked line in copy mode.
main-pane-height
Type: StringDefault:
24Description: Height of the main pane in the ‘main-horizontal’ layout. This may be a percentage, for example ‘10%‘.
main-pane-width
Type: StringDefault:
80Description: Width of the main pane in the ‘main-vertical’ layout. This may be a percentage, for example ‘10%‘.
mode-keys
Type: ChoiceChoices: emacs, vi
Default: emacs
Description: Key set used in copy mode.
mode-style
Type: StyleDefault:
noattr,bg=yellow,fg=blackDescription: Style of indicators and highlighting in modes.
monitor-activity
Type: FlagDefault: off
Description: Whether an alert is triggered by activity.
monitor-bell
Type: FlagDefault: on
Description: Whether an alert is triggered by a bell.
monitor-silence
Type: NumberRange: 0 to INT_MAX
Default: 0
Description: Time after which an alert is triggered by silence. Zero means no alert.
pane-active-border-style
Type: StyleDefault:
#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=green}}Description: Style of the active pane border.
pane-base-index
Type: NumberRange: 0 to USHRT_MAX
Default: 0
Description: Index of the first pane in each window.
pane-border-format
Type: StringDefault:
#{?pane_active,#[reverse],}#{pane_index}#[default] "#{pane_title}"Scope: Window or pane
Description: Format of text in the pane status lines.
pane-border-indicators
Type: ChoiceChoices: off, colour, arrows, both
Default: colour
Description: Whether to indicate the active pane by colouring border or displaying arrow markers.
pane-border-lines
Type: ChoiceChoices: single, double, heavy, simple, number, spaces
Default: single
Description: Type of characters used to draw pane border lines. Some of these are only supported on terminals with UTF-8 support.
pane-border-status
Type: ChoiceChoices: off, top, bottom
Default: off
Description: Position of the pane status lines.
pane-border-style
Type: StyleDefault:
defaultDescription: Style of the pane status lines.
pane-scrollbars
Type: ChoiceChoices: off, modal, on
Default: off
Description: Pane scrollbar state.
pane-scrollbars-position
Type: ChoiceChoices: right, left
Default: right
Description: Pane scrollbar position.
popup-border-lines
Type: ChoiceChoices: single, double, heavy, simple, rounded, padded, none
Default: single
Description: Type of characters used to draw popup border lines. Some of these are only supported on terminals with UTF-8 support.
remain-on-exit
Type: ChoiceChoices: off, on, failed
Default: off
Scope: Window or pane
Description: Whether panes should remain (‘on’) or be automatically killed (‘off’ or ‘failed’) when the program inside exits.
synchronize-panes
Type: FlagDefault: off
Scope: Window or pane
Description: Whether typing should be sent to all panes simultaneously.
tiled-layout-max-columns
Type: NumberRange: 0 to USHRT_MAX
Default: 0
Description: Maximum number of columns in the ‘tiled’ layout. A value of 0 means no limit.
window-size
Type: ChoiceChoices: largest, smallest, manual, latest
Default: latest
Description: How window size is calculated. ‘latest’ uses the size of the most recently used client, ‘largest’ the largest client, ‘smallest’ the smallest client and ‘manual’ a size set by the ‘resize-window’ command.
window-status-activity-style
Type: StyleDefault:
reverseDescription: Style of windows in the status line with an activity alert.
window-status-bell-style
Type: StyleDefault:
reverseDescription: Style of windows in the status line with a bell alert.
window-status-current-format
Type: StringDefault:
#I:#W#{?window_flags,#{window_flags}, }Description: Format of the current window in the status line.
window-status-current-style
Type: StyleDefault:
defaultDescription: Style of the current window in the status line.
window-status-format
Type: StringDefault:
#I:#W#{?window_flags,#{window_flags}, }Description: Format of windows in the status line, except the current window.
window-status-separator
Type: StringDefault:
(single space)Description: Separator between windows in the status line.
window-status-style
Type: StyleDefault:
defaultDescription: Style of windows in the status line, except the current and last windows.
wrap-search
Type: FlagDefault: on
Description: Whether searching in copy mode should wrap at the top or bottom.
Pane Options
Pane options can be set on individual panes and inherit from window options.allow-passthrough
Type: ChoiceChoices: off, on, all
Default: off
Description: Whether applications are allowed to use the escape sequence to bypass tmux. Can be ‘off’ (disallowed), ‘on’ (allowed if the pane is visible), or ‘all’ (allowed even if the pane is invisible).
cursor-colour
Type: ColourDefault: -1 (terminal default)
Description: Colour of the cursor.
cursor-style
Type: ChoiceChoices: default, blinking-block, block, blinking-underline, underline, blinking-bar, bar
Default: default
Description: Style of the cursor.
pane-colours
Type: Array of coloursDefault: "" (empty)
Description: The default colour palette for colours zero to 255.
scroll-on-clear
Type: FlagDefault: on
Description: Whether the contents of the screen should be scrolled into history when clearing the whole screen.
window-active-style
Type: StyleDefault:
defaultDescription: Default style of the active pane.
window-style
Type: StyleDefault:
defaultDescription: Default style of panes that are not the active pane.
Setting Options
Use theset-option command to change options: