tmux 3.7c options
Settings for the server, sessions, windows and panes, with their types, defaults and allowed values. The list covers tmux 3.7c, 153 entries.
Session options54
| Name | Type | Default | Summary |
|---|---|---|---|
| activity-action | choice | other | Set action on window activity when monitor-activity is on. |
| assume-paste-time | number | 1 | If 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-index | number | 0 | Set the base index from which an unused index should be searched when a new window is created. |
| bell-action | choice | any | Set action on a bell in a window when monitor-bell is on. |
| default-command | string | None | Set 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-shell | string | /bin/sh | Specify the default shell. |
| default-size | string | 80x24 | Set 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-unattached | choice | off | If on, destroy the session after the last client has detached. |
| detach-on-destroy | choice | on | If on (the default), the client is detached when the session it is attached to is destroyed. |
| display-panes-active-colour | colour | red | Set the colour used by the display-panes command to show the indicator for the active pane. |
| display-panes-colour | colour | blue | Set the colour used by the display-panes command to show the indicators for inactive panes. |
| display-panes-time | number | 1000 | Set the time in milliseconds for which the indicators shown by the display-panes command appear. |
| display-time | number | 750 | Set the amount of time for which status line messages and other on-screen indicators are displayed. |
| focus-follows-mouse | flag | off | When enabled and mouse is on, moving the mouse into a pane selects it. |
| history-limit | number | 2000 | Set the maximum number of lines held in pane history. |
| initial-repeat-time | number | 0 | Set the time in milliseconds for the initial repeat when a key is bound with the -r flag. |
| key-table | string | root | Set the default key table to key-table instead of root. |
| lock-after-time | number | 0 | Lock the session (like the lock-session command) after number seconds of inactivity. |
| lock-command | string | lock -np | Command to run when locking each client. |
| message-command-style | string | bg=black,fg=yellow,fill=black | Set status line message command style. |
| message-format | string | #[#{?#{command_prompt},#{E:message-command-style},#{E:message-style}}]#{message} | Set the format string for the prompt and message area. |
| message-line | choice | 0 | Set line on which status line messages and the command prompt are shown. |
| message-style | string | bg=yellow,fg=black,fill=yellow | Set status line message style. |
| mouse | flag | off | If on, tmux captures the mouse and allows mouse events to be bound as key bindings. |
| prefix | key | C-b | Set the key accepted as a prefix key. |
| prefix2 | key | None | Set a secondary key accepted as a prefix key. |
| prompt-command-cursor-style | choice | default | Set the style of the cursor in the command prompt when vi keys are enabled and the prompt is in command mode. |
| prompt-cursor-colour | colour | none | Set the colour of the cursor in the command prompt. |
| prompt-cursor-style | choice | default | Set the style of the cursor in the command prompt. |
| renumber-windows | flag | off | If on, when a window is closed in a session, automatically renumber the other windows in numerical order. |
| repeat-time | number | 500 | Allow multiple commands to be entered without pressing the prefix key again in the specified time milliseconds (the default is 500). |
| set-titles | flag | off | Attempt to set the client terminal title using the tsl and fslterminfo(5) entries if they exist. |
| set-titles-string | string | #S:#I:#W - "#T" #{session_alerts} | String used to set the client terminal title if set-titles is on. |
| silence-action | choice | other | Set action on window silence when monitor-silence is on. |
| status | choice | on | Show or hide the status line or specify its size. |
| status-bg | colour | default | Background colour of the status line. This option is deprecated, use 'status-style' instead. |
| status-fg | colour | default | Foreground colour of the status line. This option is deprecated, use 'status-style' instead. |
| status-format | string | #[align=left range=left #{E: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} #{E:window-status-style}#{?#{&&:#{window_last_flag},#{!=:#{E:window-status-last-style},default}}, #{E:window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{E:window-status-bell-style},default}}, #{E:window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{E:window-status-activity-style},default}}, #{E:window-status-activity-style},}}]#[push-default]#{T:window-status-format}#[pop-default]#[norange default]#{?loop_last_flag,,#{E:window-status-separator}},#[range=window|#{window_index} list=focus #{?#{!=:#{E:window-status-current-style},default},#{E:window-status-current-style},#{E:window-status-style}}#{?#{&&:#{window_last_flag},#{!=:#{E:window-status-last-style},default}}, #{E:window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{E:window-status-bell-style},default}}, #{E:window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{E:window-status-activity-style},default}}, #{E:window-status-activity-style},}}]#[push-default]#{T:window-status-current-format}#[pop-default]#[norange list=on default]#{?loop_last_flag,,#{E:window-status-separator}}}#[nolist align=right range=right #{E:status-right-style}]#[push-default]#{T;=/#{status-right-length}:status-right}#[pop-default]#[norange default],#[align=left]#{R: ,#{n:#{session_name}}}P: #[norange default]#[list=on align=#{status-justify}]#[list=left-marker]<#[list=right-marker]>#[list=on]#{P:#[range=pane|#{pane_id} #{E:pane-status-style}]#[push-default]#{T:window-pane-status-format}#[pop-default]#[norange list=on default] ,#[range=pane|#{pane_id} list=focus #{?#{!=:#{E:pane-status-current-style},default},#{E:pane-status-current-style},#{E:pane-status-style}}]#[push-default]#{T:window-pane-current-status-format}#[pop-default]#[norange list=on default] },#[align=left]#{R: ,#{n:#{session_name}}}S: #[norange default]#[list=on align=#{status-justify}]#[list=left-marker]<#[list=right-marker]>#[list=on]#{S:#[range=session|#{session_id} #{E:session-status-style}]#[push-default]#S#{session_alert}#[pop-default]#[norange list=on default] ,#[range=session|#{session_id} list=focus #{?#{!=:#{E:session-status-current-style},default},#{E:session-status-current-style},#{E:session-status-style}}]#[push-default]#S*#{session_alert}#[pop-default]#[norange list=on default] } | Specify the format to be used for each line of the status line. |
| status-interval | number | 15 | Update the status line every interval seconds. |
| status-justify | choice | left | Set the position of the window list in the status line: left, centre or right. |
| status-keys | choice | emacs | Use vi or emacs-style key bindings in the status line, for example at the command prompt. |
| status-left | string | [#{session_name}] | Display string (by default the session name) to the left of the status line. |
| status-left-length | number | 10 | Set the maximum length of the left component of the status line. |
| status-left-style | string | default | Set the style of the left part of the status line. |
| status-position | choice | bottom | Set the position of the status line. |
| status-right | string | #{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}"#{=21:pane_title}" %H:%M %d-%b-%y | Display string to the right of the status line. |
| status-right-length | number | 40 | Set the maximum length of the right component of the status line. |
| status-right-style | string | default | Set the style of the right part of the status line. |
| status-style | string | bg=green,fg=black | Set status line style. |
| update-environment | string | DISPLAY KRB5CCNAME MSYSTEM SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WAYLAND_DISPLAY WINDOWID XAUTHORITY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE | Set list of environment variables to be copied into the session environment when a new session is created or an existing session is attached. |
| visual-activity | choice | off | If 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-bell | choice | off | If 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-silence | choice | off | If monitor-silence is enabled, prints a message after the interval has expired on a given window instead of sending a bell. |
| word-separators | string | !"#$%&'()*+,-./:;<=>?@[\]^`{|}~ | 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 options55
| Name | Type | Default | Summary |
|---|---|---|---|
| aggressive-resize | flag | off | Aggressively resize the chosen window. |
| automatic-rename | flag | on | Control automatic window renaming. |
| automatic-rename-format | string | #{?pane_in_mode,[tmux],#{pane_current_command}}#{?pane_dead,[dead],} | The format (see FORMATS) used when the automatic-rename option is enabled. |
| clock-mode-colour | colour | blue | Set clock colour. |
| clock-mode-style | choice | 24 | Set clock hour format. |
| copy-mode-current-line-number-style | string | fg=yellow | Set style of current line number in copy mode. |
| copy-mode-current-match-style | string | bg=magenta,fg=black | Set the style of the current search match in copy mode. |
| copy-mode-line-number-style | string | fg=white,dim | Set style of line numbers in copy mode. |
| copy-mode-line-numbers | choice | off | Show line numbers in copy mode. |
| copy-mode-mark-style | string | bg=red,fg=black | Set the style of the line containing the mark in copy mode. |
| copy-mode-match-style | string | bg=cyan,fg=black | Set the style of search matches in copy mode. |
| copy-mode-position-style | string | #{E:mode-style} | Set the style of the position indicator in copy mode. |
| copy-mode-selection-style | string | #{E:mode-style} | Set the style of the selection in copy mode. |
| fill-character | string | None | Set the character used to fill areas of the terminal unused by a window. |
| main-pane-height | string | 24 | Set the width or height of the main (left or top) pane in the main-horizontal, main-horizontal-mirrored, main-vertical, or main-vertical-mirrored layouts. |
| main-pane-width | string | 80 | Set the width or height of the main (left or top) pane in the main-horizontal, main-horizontal-mirrored, main-vertical, or main-vertical-mirrored layouts. |
| menu-border-lines | choice | single | Set the type of characters used for drawing menu borders. |
| menu-border-style | string | default | Set the menu border style. |
| menu-selected-style | string | bg=yellow,fg=black | Set the selected menu item style. |
| menu-style | string | default | Set the menu style. |
| mode-keys | choice | emacs | Use vi or emacs-style key bindings in copy mode. |
| mode-style | string | noattr,bg=yellow,fg=black | Set window modes style. |
| monitor-activity | flag | off | Monitor for activity in the window. |
| monitor-bell | flag | on | Monitor for a bell in the window. |
| monitor-silence | number | 0 | Monitor for silence (no activity) in the window within interval seconds. |
| other-pane-height | string | 0 | Set the height of the other panes (not the main pane) in the main-horizontal and main-horizontal-mirrored layouts. |
| other-pane-width | string | 0 | Like other-pane-height, but set the width of other panes in the main-vertical and main-vertical-mirrored layouts. |
| pane-base-index | number | 0 | Like base-index, but set the starting index for pane numbers. |
| pane-border-indicators | choice | colour | Indicate active pane by colouring only half of the border in windows with exactly two panes, by displaying arrow markers, by drawing both or neither. |
| pane-border-lines | choice | single | Set the type of characters used for drawing pane borders. |
| pane-border-status | choice | off | Turn pane border status lines off or set their position. |
| pane-scrollbars | choice | off | When enabled, a character based scrollbar appears on the left or right of each pane. |
| pane-scrollbars-position | choice | right | Sets which side of the pane to display pane scrollbars on. |
| pane-status-current-style | string | default | Set status line style for the currently active pane. |
| pane-status-style | string | default | Set status line style for a single pane. |
| popup-border-lines | choice | single | Set the type of characters used for drawing popup borders. |
| popup-border-style | string | default | Set the popup border style. |
| popup-style | string | default | Set the popup style. |
| session-status-current-style | string | default | Set status line style for the currently active session. |
| session-status-style | string | default | Set status line style for a single session. |
| tiled-layout-max-columns | number | 0 | Set the maximum number of columns in the tiled layout. |
| tree-mode-preview-style | string | fg=#{?#{||:#{&&:#{pane_format},#{pane_active}},#{&&:#{window_format},#{window_active}}},#{display-panes-active-colour},#{display-panes-colour}} | Set the style of the preview indicator in tree mode. |
| window-pane-current-status-format | string | #P:[#T]#{?pane_flags,#{pane_flags}, } | Like window-status-format, but is the format used when the window is the current window. |
| window-pane-status-format | string | #P:[#T]#{?pane_flags,#{pane_flags}, } | Set the format in which the window pane is displayed in the status line window pane list. |
| window-size | choice | latest | Configure how tmux determines the window size. |
| window-status-activity-style | string | reverse | Set status line style for windows with an activity alert. |
| window-status-bell-style | string | reverse | Set status line style for windows with a bell alert. |
| window-status-current-format | string | #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-style | string | default | Set status line style for the currently active window. |
| window-status-format | string | #I:#W#{?window_flags,#{window_flags}, } | Set the format in which the window is displayed in the status line window list. |
| window-status-last-style | string | default | Set status line style for the last active window. |
| window-status-separator | string | | Sets the separator drawn between windows in the status line. |
| window-status-style | string | default | Set status line style for a single window. |
| wrap-search | flag | on | If this option is set, searches will wrap around the end of the pane contents. |
| xterm-keys | flag | on | Whether xterm-style function key sequences should be sent. This option is no longer used. |
Window and pane options19
| Name | Type | Default | Summary |
|---|---|---|---|
| allow-passthrough | choice | off | Allow programs in the pane to bypass tmux using a terminal escape sequence (\ePtmux;...\e\\). |
| allow-rename | flag | off | Allow programs in the pane to change the window name using a terminal escape sequence (\ek...\e\\). |
| allow-set-title | flag | on | Allow programs in the pane to change the title using the terminal escape sequences (\e]2;...\e\\ or \e]0;...\e\\). |
| alternate-screen | flag | on | This option configures whether programs running inside the pane may use the terminal alternate screen feature, which allows the smcup and rmcupterminfo(5) capabilities. |
| copy-mode-position-format | string | #[align=right]#{t/p:top_line_time}#{?#{e|>:#{top_line_time},0}, ,}[#{copy_position}/#{copy_position_limit}]#{?search_timed_out, (timed out),#{?search_count, (#{search_count}#{?search_count_partial,+,} results),}} | Format of the position indicator in copy mode. |
| cursor-colour | colour | none | Set the colour of the cursor. |
| cursor-style | choice | default | Set the style of the cursor. |
| pane-active-border-style | string | #{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=green}} | Set the pane border style for the currently active pane. |
| pane-border-format | string | #{?pane_active,#[reverse],}#{pane_index}#[default] "#{pane_title}"#{?#{mouse},#[align=right]#[range=control|8][#{?#{window_zoomed_flag},u,z}]#[norange]#[range=control|9][x]#[norange],} | Set the text shown in pane border status lines. |
| pane-border-style | string | default | Set the pane border style for panes aside from the active pane. |
| pane-colours | colour | None | The default colour palette. |
| pane-scrollbars-style | string | bg=black,fg=white,width=1,pad=0 | Set the scrollbars style. |
| remain-on-exit | choice | off | A pane with this flag set is not destroyed when the program running in it exits. |
| remain-on-exit-format | string | Pane is dead (#{?#{!=:#{pane_dead_status},},status #{pane_dead_status},}#{?#{!=:#{pane_dead_signal},},signal #{pane_dead_signal},}, #{t:pane_dead_time}) | Set the text shown at the bottom of exited panes when remain-on-exit is enabled. |
| scroll-on-clear | flag | on | When the entire screen is cleared and this option is on, scroll the contents of the screen into history before clearing it. |
| synchronize-panes | flag | off | Duplicate input to all other panes in the same window where this option is also on (only for panes that are not in any mode). |
| tree-mode-preview-format | string | #{?pane_format,#{pane_index}:#{pane_title},#{window_index}:#{window_name}} | Format of the preview indicator in tree mode. |
| window-active-style | string | default | Set the pane style when it is the active pane. |
| window-style | string | default | Set the pane style. |
Server options25
| Name | Type | Default | Summary |
|---|---|---|---|
| backspace | key | C-? | Set the key sent by tmux for backspace. |
| buffer-limit | number | 50 | Set 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. |
| codepoint-widths | string | None | An array option allowing widths of Unicode codepoints to be overridden. |
| command-alias | string | 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 -s | This is an array of custom aliases for commands. |
| copy-command | string | None | Give the command to pipe to if the copy-pipe copy mode command is used without arguments. |
| default-client-command | command | new-session | Set the default command to run when tmux is called without a command. |
| default-terminal | string | screen | Set the default terminal for new windows created in this session - the default value of the TERM environment variable. |
| editor | string | /usr/bin/vi | Set the command used when tmux runs an editor. |
| escape-time | number | 10 | Set 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-empty | flag | on | If enabled (the default), the server will exit when there are no active sessions. |
| exit-unattached | flag | off | If enabled, the server will exit when there are no attached clients. |
| extended-keys | choice | off | Controls how modified keys (keys pressed together with Control, Meta, or Shift) are reported. |
| extended-keys-format | choice | xterm | Selects one of the two possible formats for reporting modified keys to applications. |
| focus-events | flag | off | When enabled, focus events are requested from the terminal if supported and passed through to applications running in tmux. |
| get-clipboard | choice | buffer | Controls the behaviour when an application requests the clipboard from tmux. |
| history-file | string | None | If not empty, a file to which tmux will write command prompt history on exit and load it from on start. |
| input-buffer-size | number | 1048576 | Maximum of bytes allowed to read in escape and control sequences. |
| message-limit | number | 1000 | Set the number of error or information messages to save in the message log for each client. |
| prefix-timeout | number | 0 | Set the time in milliseconds for which tmux waits after prefix is input before dismissing it. |
| prompt-history-limit | number | 100 | Set the number of history items to save in the history file for each type of command prompt. |
| set-clipboard | choice | external | Attempt 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-features | string | xterm*:clipboard:ccolour:cstyle:focus:title,screen*:title,rxvt*:ignorefkeys | Set terminal features for terminal types read from terminfo(5). |
| terminal-overrides | string | linux*:AX@ | Allow terminal descriptions read using terminfo(5) to be overridden. |
| user-keys | string | None | Set list of user-defined key escape sequences. |
| variation-selector-always-wide | flag | on | Always treat Unicode variation selector 16 as marking a wide character. |
No entries match. Clear the filter to see all 153.