tmuxtmuxOptions, hooks and formats

Choose documentation 1

3.2a

tmux catalog version

Latest (3.7c) 3.7c 3.2a
English

tmux 3.2a options, hooks and formats

tmux 3.2a options

Settings for the server, sessions, windows and panes, with their types, defaults and allowed values. The list covers tmux 3.2a, 104 entries.

Session options47

NameTypeDefaultSummary
activity-actionchoiceotherSet action on window activity when monitor-activity is on.
assume-paste-timenumber1If keys are entered faster than one in milliseconds, they are assumed to have been pasted rather than typed and tmux key bindings are not processed.
base-indexnumber0Set the base index from which an unused index should be searched when a new window is created.
bell-actionchoiceanySet action on a bell in a window when monitor-bell is on.
default-commandstringNoneSet the command used for new windows (if not specified when the window is created) to shell-command, which may be any sh(1) command.
default-shellstring/bin/shSpecify the default shell.
default-sizestring80x24Set the default size of new windows when the window-size option is set to manual or when a session is created with new-session-d.
destroy-unattachedflagoffIf enabled and the session is no longer attached to any clients, it is destroyed.
detach-on-destroychoiceonIf on (the default), the client is detached when the session it is attached to is destroyed.
display-panes-active-colourcolourredSet the colour used by the display-panes command to show the indicator for the active pane.
display-panes-colourcolourblueSet the colour used by the display-panes command to show the indicators for inactive panes.
display-panes-timenumber1000Set the time in milliseconds for which the indicators shown by the display-panes command appear.
display-timenumber750Set the amount of time for which status line messages and other on-screen indicators are displayed.
history-limitnumber2000Set the maximum number of lines held in window history.
key-tablestringrootSet the default key table to key-table instead of root.
lock-after-timenumber0Lock the session (like the lock-session command) after number seconds of inactivity.
lock-commandstringlock -npCommand to run when locking each client.
message-command-stylestringbg=black,fg=yellowSet status line message command style.
message-stylestringbg=yellow,fg=blackSet status line message style.
mouseflagoffIf on, tmux captures the mouse and allows mouse events to be bound as key bindings.
prefixkeyC-bSet the key accepted as a prefix key.
prefix2keyNoneSet a secondary key accepted as a prefix key.
renumber-windowsflagoffIf on, when a window is closed in a session, automatically renumber the other windows in numerical order.
repeat-timenumber500Allow multiple commands to be entered without pressing the prefix-key again in the specified time milliseconds (the default is 500).
set-titlesflagoffAttempt to set the client terminal title using the tsl and fslterminfo(5) entries if they exist.
set-titles-stringstring#S:#I:#W - "#T" #{session_alerts}String used to set the client terminal title if set-titles is on.
silence-actionchoiceotherSet action on window silence when monitor-silence is on.
statuschoiceonShow or hide the status line or specify its size.
status-bgcolourdefaultBackground colour of the status line. This option is deprecated, use 'status-style' instead.
status-fgcolourdefaultForeground colour of the status line. This option is deprecated, use 'status-style' instead.
status-formatstring#[align=left range=left #{status-left-style}]#[push-default]#{T;=/#{status-left-length}:status-left}#[pop-default]#[norange default]#[list=on align=#{status-justify}]#[list=left-marker]<#[list=right-marker]>#[list=on]#{W:#[range=window|#{window_index} #{window-status-style}#{?#{&&:#{window_last_flag},#{!=:#{window-status-last-style},default}}, #{window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{window-status-bell-style},default}}, #{window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{window-status-activity-style},default}}, #{window-status-activity-style},}}]#[push-default]#{T:window-status-format}#[pop-default]#[norange default]#{?window_end_flag,,#{window-status-separator}},#[range=window|#{window_index} list=focus #{?#{!=:#{window-status-current-style},default},#{window-status-current-style},#{window-status-style}}#{?#{&&:#{window_last_flag},#{!=:#{window-status-last-style},default}}, #{window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{window-status-bell-style},default}}, #{window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{window-status-activity-style},default}}, #{window-status-activity-style},}}]#[push-default]#{T:window-status-current-format}#[pop-default]#[norange list=on default]#{?window_end_flag,,#{window-status-separator}}}#[nolist align=right range=right #{status-right-style}]#[push-default]#{T;=/#{status-right-length}:status-right}#[pop-default]#[norange default],#[align=centre]#{P:#{?pane_active,#[reverse],}#{pane_index}[#{pane_width}x#{pane_height}]#[default] }Specify the format to be used for each line of the status line.
status-intervalnumber15Update the status line every interval seconds.
status-justifychoiceleftSet the position of the window list in the status line: left, centre or right.
status-keyschoiceemacsUse vi or emacs-style key bindings in the status line, for example at the command prompt.
status-leftstring[#{session_name}] Display string (by default the session name) to the left of the status line.
status-left-lengthnumber10Set the maximum length of the left component of the status line.
status-left-stylestringdefaultSet the style of the left part of the status line.
status-positionchoicebottomSet the position of the status line.
status-rightstring#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}"#{=21:pane_title}" %H:%M %d-%b-%yDisplay string to the right of the status line.
status-right-lengthnumber40Set the maximum length of the right component of the status line.
status-right-stylestringdefaultSet the style of the right part of the status line.
status-stylestringbg=green,fg=blackSet status line style.
update-environmentstringDISPLAY KRB5CCNAME SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITYSet list of environment variables to be copied into the session environment when a new session is created or an existing session is attached.
visual-activitychoiceoffIf on, display a message instead of sending a bell when activity occurs in a window for which the monitor-activity window option is enabled.
visual-bellchoiceoffIf on, a message is shown on a bell in a window for which the monitor-bell window option is enabled instead of it being passed through to the terminal (which normally makes a sound).
visual-silencechoiceoffIf monitor-silence is enabled, prints a message after the interval has expired on a given window instead of sending a bell.
word-separatorsstring Sets the session's conception of what characters are considered word separators, for the purposes of the next and previous word commands in copy mode.

Window options34

NameTypeDefaultSummary
aggressive-resizeflagoffAggressively resize the chosen window.
automatic-renameflagonControl automatic window renaming.
automatic-rename-formatstring#{?pane_in_mode,[tmux],#{pane_current_command}}#{?pane_dead,[dead],}The format (see FORMATS) used when the automatic-rename option is enabled.
clock-mode-colourcolourblueSet clock colour.
clock-mode-stylechoice24Set clock hour format.
copy-mode-current-match-stylestringbg=magenta,fg=blackSet the style of the current search match in copy mode.
copy-mode-mark-stylestringbg=red,fg=blackSet the style of the line containing the mark in copy mode.
copy-mode-match-stylestringbg=cyan,fg=blackSet the style of search matches in copy mode.
main-pane-heightstring24Set the width or height of the main (left or top) pane in the main-horizontal or main-vertical layouts.
main-pane-widthstring80Set the width or height of the main (left or top) pane in the main-horizontal or main-vertical layouts.
mode-keyschoiceemacsUse vi or emacs-style key bindings in copy mode.
mode-stylestringbg=yellow,fg=blackSet window modes style.
monitor-activityflagoffMonitor for activity in the window.
monitor-bellflagonMonitor for a bell in the window.
monitor-silencenumber0Monitor for silence (no activity) in the window within interval seconds.
other-pane-heightstring0Set the height of the other panes (not the main pane) in the main-horizontal layout.
other-pane-widthstring0Like other-pane-height, but set the width of other panes in the main-vertical layout.
pane-active-border-stylestring#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=green}}Set the pane border style for the currently active pane.
pane-base-indexnumber0Like base-index, but set the starting index for pane numbers.
pane-border-formatstring#{?pane_active,#[reverse],}#{pane_index}#[default] "#{pane_title}"Set the text shown in pane border status lines.
pane-border-lineschoicesingleSet the type of characters used for drawing pane borders.
pane-border-statuschoiceoffTurn pane border status lines off or set their position.
pane-border-stylestringdefaultSet the pane border style for panes aside from the active pane.
window-sizechoicelatestConfigure how tmux determines the window size.
window-status-activity-stylestringreverseSet status line style for windows with an activity alert.
window-status-bell-stylestringreverseSet status line style for windows with a bell alert.
window-status-current-formatstring#I:#W#{?window_flags,#{window_flags}, }Like window-status-format, but is the format used when the window is the current window.
window-status-current-stylestringdefaultSet status line style for the currently active window.
window-status-formatstring#I:#W#{?window_flags,#{window_flags}, }Set the format in which the window is displayed in the status line window list.
window-status-last-stylestringdefaultSet status line style for the last active window.
window-status-separatorstring Sets the separator drawn between windows in the status line.
window-status-stylestringdefaultSet status line style for a single window.
wrap-searchflagonIf this option is set, searches will wrap around the end of the pane contents.
xterm-keysflagonWhether xterm-style function key sequences should be sent. This option is no longer used.

Window and pane options6

NameTypeDefaultSummary
allow-renameflagoffAllow programs in the pane to change the window name using a terminal escape sequence (\ek...\e\\).
alternate-screenflagonThis option configures whether programs running inside the pane may use the terminal alternate screen feature, which allows the smcup and rmcupterminfo(5) capabilities.
remain-on-exitchoiceoffA pane with this flag set is not destroyed when the program running in it exits.
synchronize-panesflagoffDuplicate input to all other panes in the same window where this option is also on (only for panes that are not in any mode).
window-active-stylestringdefaultSet the pane style when it is the active pane.
window-stylestringdefaultSet the pane style.

Server options17

NameTypeDefaultSummary
backspacekeyC-?Set the key sent by tmux for backspace.
buffer-limitnumber50Set the number of buffers; as new buffers are added to the top of the stack, old ones are removed from the bottom if necessary to maintain this maximum length.
command-aliasstringsplit-pane=split-window,splitp=split-window,server-info=show-messages -JT,info=show-messages -JT,choose-window=choose-tree -w,choose-session=choose-tree -sThis is an array of custom aliases for commands.
copy-commandstringNoneGive the command to pipe to if the copy-pipe copy mode command is used without arguments.
default-terminalstringscreenSet the default terminal for new windows created in this session - the default value of the TERM environment variable.
editorstring/usr/bin/viSet the command used when tmux runs an editor.
escape-timenumber500Set the time in milliseconds for which tmux waits after an escape is input to determine if it is part of a function or meta key sequences.
exit-emptyflagonIf enabled (the default), the server will exit when there are no active sessions.
exit-unattachedflagoffIf enabled, the server will exit when there are no attached clients.
extended-keyschoiceoffWhen on or always, the escape sequence to enable extended keys is sent to the terminal, if tmux knows that it is supported.
focus-eventsflagoffWhen enabled, focus events are requested from the terminal if supported and passed through to applications running in tmux.
history-filestringNoneIf not empty, a file to which tmux will write command prompt history on exit and load it from on start.
message-limitnumber1000Set the number of error or information messages to save in the message log for each client.
set-clipboardchoiceexternalAttempt to set the terminal clipboard content using the xterm(1) escape sequence, if there is an Ms entry in the terminfo(5) description (see the TERMINFO EXTENSIONS section).
terminal-featuresstringxterm*:clipboard:ccolour:cstyle:focus:title,screen*:titleSet terminal features for terminal types read from terminfo(5).
terminal-overridesstringNoneAllow terminal descriptions read using terminfo(5) to be overridden.
user-keysstringNoneSet list of user-defined key escape sequences.
Esc

Type to search.

Reference previewOpen reference