tmux.conf (2435B)
1 # Reduce escape time from 500 to 10ms for better behaviour in vim. 2 set-option -sg escape-time 10 3 4 # 24-bit colour terminal, underline, undercurl. 5 set-option -as terminal-features ',xterm-256color:RGB' # 24-bit colour. 6 set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl. 7 set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underline. 8 9 # Enable focus events, if supported by the terminal. 10 set-option -g focus-events on 11 12 # Enable mouse focus, scroll, selection. 13 set-option -g mouse on 14 15 # Automatically renumber windows when one is closed. 16 set-option -g base-index 1 17 set-window-option -g pane-base-index 1 18 set-window-option -g renumber-windows on 19 20 # Disable automatic window renaming. 21 set-window-option -g automatic-rename off 22 23 # Highlight panes with activity in the status bar. 24 set-window-option -g monitor-activity on 25 26 # Inherit the current working directory when splitting panes. 27 bind-key '"' split-window -c "#{pane_current_path}" 28 bind-key '%' split-window -h -c "#{pane_current_path}" 29 30 # Use vi-like movement keys. 31 set-window-option -g mode-keys vi 32 set-option -g status-keys vi 33 bind-key h select-pane -L 34 bind-key j select-pane -D 35 bind-key k select-pane -U 36 bind-key l select-pane -R 37 bind-key ? list-keys 38 39 # Use vi-like selection keys in copy mode. 40 bind-key -T copy-mode-vi 'v' send-keys -X begin-selection 41 bind-key -T copy-mode-vi 'y' send-keys -X copy-selection 42 bind-key -T copy-mode-vi 'r' send-keys -X rectangle-toggle 43 44 # Bindings: Clear screen and reset the scroll buffer. 45 bind-key b send-keys -R C-l\; clear-history 46 47 # Use arrow keys to resize panes. 48 bind-key -r Left resize-pane -L 5 49 bind-key -r Right resize-pane -R 5 50 bind-key -r Up resize-pane -U 5 51 bind-key -r Down resize-pane -D 5 52 bind-key -r S-Left resize-pane -L 1 53 bind-key -r S-Right resize-pane -R 1 54 bind-key -r S-Up resize-pane -U 1 55 bind-key -r S-Down resize-pane -D 1 56 57 # Layout even-horizontal instead of cycling through all layouts. 58 bind-key -r Space select-layout even-horizontal 59 60 # Register bindings for commonly-used layouts. 61 bind-key ^ split-window -h -c "#{pane_current_path}"\; split-window -v -c "#{pane_current_path}"\; select-pane -U\; select-pane -L 62 bind-key \\ split-window -h -c "#{pane_current_path}"\; split-window -h -c "#{pane_current_path}"\; select-layout even-horizontal\; select-pane -L 63 64 # Use the Solarized Osaka colour scheme. 65 source ~/.config/tmux/solarized-osaka_moon.tmux