.tmux.conf
6cbbd144
 ## Terminal
 # See "terminal-overrides" and "TERMINFO EXTENSIONS" in `tmux(1)` and
 # "Parameterized Strings" in `terminfo(5)`. Note that `tmux` seems to provide
 # built-in `terminal-overrides` for `xterm` but not for `linux`, see `tmux show
 # -s terminal-overrides`.
 set -s default-terminal tmux
 if '[ "$(tput colors)" -ge 256 ]' {
   set -s default-terminal tmux-256color
 }
 if '[ "$COLORTERM" ]' {
   set -ga terminal-overrides '*:Tc'
 }
 set -ga terminal-overrides 'linux:Ss=\E[?%?%p1%{3}%<%t%{8}%e%{2}%;%dc'
 set -s escape-time 0
 set -s focus-events on
 set -g set-titles on
 set -g set-titles-string 'tmux:#W'
 set -gw xterm-keys on
 
 ## Windows
 set -g base-index 1
 set -g pane-base-index 1
 set -g renumber-windows on
 
 ## History
 set -g history-limit 10000
 
 ## Activity
 set -gw monitor-activity on
 set -g visual-activity on
 
 ## Multiple clients
 set -g window-size smallest
 set -gw aggressive-resize on
 
 ## Mouse
 set -g mouse on
 
 ## Colors
 set -g status-style             'fg=Black bg=BrightWhite'
 set -g pane-border-style        'fg=White'
 set -g pane-active-border-style 'fg=BrightWhite'
 
 ## Bindings
 
 ### Vi-like
 set -gw mode-keys   vi
 set -gw status-keys vi
 bind C-s split-window -v
 bind C-v split-window -h
 bind C-j select-pane  -D
 bind C-k select-pane  -U
 bind C-h select-pane  -L
 bind C-l select-pane  -R