31 lines
721 B
Bash
31 lines
721 B
Bash
set-option -sg escape-time 10
|
|
set-option -g default-terminal "screen-256color"
|
|
|
|
set-option -sa terminal-overrides ',xterm-256color:RGB'
|
|
setw -g mode-keys vi
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
bind -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
|
|
|
# vim-like pane resizing
|
|
bind -r C-k resize-pane -U
|
|
bind -r C-j resize-pane -D
|
|
bind -r C-h resize-pane -L
|
|
bind -r C-l resize-pane -R
|
|
|
|
# vim-like pane switching
|
|
bind -n C-k select-pane -U
|
|
bind -n C-j select-pane -D
|
|
bind -n C-h select-pane -L
|
|
bind -n C-l select-pane -R
|
|
|
|
# and now unbind keys
|
|
unbind Up
|
|
unbind Down
|
|
unbind Left
|
|
unbind Right
|
|
|
|
unbind C-Up
|
|
unbind C-Down
|
|
unbind C-Left
|
|
unbind C-Right
|