32 lines
730 B
Bash
32 lines
730 B
Bash
#Set prefix
|
|
unbind C-b
|
|
set-option -g prefix C-a
|
|
bind-key C-a send-prefix
|
|
|
|
#key rebindings
|
|
## Splits
|
|
bind - split-window -v
|
|
bind _ split-window -h
|
|
|
|
## Navigate to pane
|
|
bind -r h select-pane -L
|
|
bind -r j select-pane -D
|
|
bind -r k select-pane -U
|
|
bind -r l select-pane -R
|
|
|
|
## Resize pane
|
|
bind -r H resize-pane -L 5
|
|
bind -r J resize-pane -D 5
|
|
bind -r K resize-pane -U 5
|
|
bind -r L resize-pane -R 5
|
|
|
|
#Vi mode
|
|
set-window-option -g mode-keys vi
|
|
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 -r Enter copy-mode
|
|
bind-key -r p paste-buffer
|
|
bind-key -T copy-mode-vi C-c send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
|
|
|
|
## Mouse support
|
|
set -g mouse on
|