-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
30 lines (24 loc) · 962 Bytes
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Fix terminal colors
set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ',xterm-kitty:Tc'
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# For vim's focus events to work
set -g focus-events on
# Set powerline for TMUX
source /usr/share/powerline/bindings/tmux/powerline.conf
# Set VIM mode keys
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi V send -X select-line
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# Use HJKL to navigate panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Fix slow ESC in vim
set -sg escape-time 10