You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
setw -g mode-keys vi
|
|
setw -g default-command /usr/bin/fish
|
|
|
|
set -g mouse on
|
|
#set -g default-terminal "tmux-256color"
|
|
set -as terminal-features ",xterm-256color:RGB"
|
|
set -ga terminal-overrides ",*256col*:Tc"
|
|
|
|
set -sg escape-time 10
|
|
|
|
# Smart pane switching with awareness of Vim splits.
|
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
|
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
|
bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
|
|
bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
|
|
bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
|
|
bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
|
|
|
bind-key -T copy-mode-vi 'C-h' 'select-pane -L'
|
|
bind-key -T copy-mode-vi 'C-j' 'select-pane -D'
|
|
bind-key -T copy-mode-vi 'C-k' 'select-pane -U'
|
|
bind-key -T copy-mode-vi 'C-l' 'select-pane -R'
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
run '~/.tmux/plugins/tpm/tpm'
|
|
|