37 lines
763 B
Plaintext
37 lines
763 B
Plaintext
#remap prefix from C-b to alt-a
|
|
unbind C-b
|
|
set-option -g prefix M-a
|
|
bind-key M-a send-prefix
|
|
|
|
#split panes using | and -
|
|
unbind '|'
|
|
unbind '-'
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
unbind '"'
|
|
unbind %
|
|
|
|
#switch panes using alt-hjkl
|
|
bind -n M-h select-pane -L
|
|
bind -n M-l select-pane -R
|
|
bind -n M-k select-pane -U
|
|
bind -n M-j select-pane -D
|
|
|
|
#or with the prefix and hjkl
|
|
bind h select-pane -L
|
|
bind l select-pane -R
|
|
bind k select-pane -U
|
|
bind j select-pane -D
|
|
|
|
#resize panes with HJKL
|
|
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
|
|
|
|
#dont rename windows automatically
|
|
set-option -g allow-rename off
|
|
|
|
#fix annoying escape behavior
|
|
set -sg escape-time 0
|