set -g default-terminal "tmux-256color" set-option -ga terminal-overrides ",${TERM}:Tc"
1 2 3 4 5 6 7 8 9 10 11 12 13 14
default-terminal terminal Set the default terminal for new windows created in this session - the default value of the TERM environment variable. For tmux to work correctly, this must be set to ‘screen’, ‘tmux’ or a derivative of them.
terminal-overrides[] string Allow terminal descriptions read using terminfo(5) to be overridden. Each entry is a colon-separated string made up of a terminal type pattern (matched using fnmatch(3)) and a set of name=value entries.
For example, to set the ‘clear’ terminfo(5) entry to ‘\e[H\e[2J’ for all terminal types matching ‘rxvt*’:
rxvt*:clear=\e[H\e[2J
The terminal entry value is passed through strunvis(3) before interpretation.