50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
#configure mouse
|
|
set -g mode-mouse on
|
|
set -g mouse-select-pane on
|
|
set -g mouse-resize-pane on
|
|
set -g mouse-select-window on
|
|
|
|
set -g mode-keys vi
|
|
set -g history-limit 10000
|
|
|
|
# y and p
|
|
bind Escape copy-mode
|
|
unbind p
|
|
bind p paste-buffer
|
|
bind -t vi-copy 'v' begin-selection
|
|
bind -t vi-copy 'y' copy-selection
|
|
bind -t vi-copy 'Space' halfpage-down
|
|
bind -t vi-copy 'Bspace' halfpage-up
|
|
|
|
# vim move keys
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
bind -r C-k select-window -t :-
|
|
bind -r C-j select-window -t :+
|
|
|
|
# resize
|
|
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
|
|
|
|
unbind %
|
|
bind v split-window -h
|
|
bind b split-window -v
|
|
|
|
#lookin' good
|
|
set-window-option -g window-status-format " #I: #W "
|
|
set-window-option -g status-fg colour243
|
|
set-window-option -g status-bg colour235
|
|
|
|
set-window-option -g window-status-current-format " #I: #W "
|
|
set-window-option -g window-status-current-fg colour143
|
|
set-window-option -g window-status-current-bg colour235
|
|
|
|
set-option -g pane-active-border-fg colour94
|
|
|
|
set -g status-justify centre
|