set-option -g default-terminal "xterm-256color" set-option -g allow-rename off # Don't allow pane automatic renaming set-option -g mouse on # mouse behavior set-option -g base-index 1 # start indexing from 1 not 0 set-option -g pane-base-index 1 # start indexing from 1 not 0 set-option -g renumber-windows on # renumber the windows after closing windows set-option -g history-limit 10000 # Scroll History limit set-option -g display-time 4000 # window/status messages are displayed for 4 seconds set-option -g display-panes-time 4000 # pane messages are displayed for 4 seconds set-option -g focus-events on # focus events enabled for terminals that support them set-option -g status-keys emacs # emacs binding status commands: https://unix.stackexchange.com/questions/383420/ set-option -s escape-time 50 # lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. set-window-option -g alternate-screen on # allow running alternate screen (term feature) on tmux set-window-option -g mode-keys vi # Vi mode and copy paste bind-key -T copy-mode-vi 'v' send-keys -X begin-selection bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel # bind-key -n C-k clear-history # Conflicts with vim mappings bind-key -n C-l send-keys C-l \; send-keys -R \; clear-history # Resizing panes bind-key -r H resize-pane -L 20 bind-key -r J resize-pane -D 10 bind-key -r K resize-pane -U 10 bind-key -r L resize-pane -R 20 # Vim style pane navigation bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # Load OSX specific configurations to add (fix copy) if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf' # For better tmux support disable MacOS conflicting settings (to work better with control + arrows): # System Preferences > Keyboard > Shortcuts > Mission Control # System Preferences > Keyboard > Shortcuts > Mission Control > move (left | right) a space # System Preferences > Keyboard > Shortcuts > Application windows