32 lines
588 B
Bash
32 lines
588 B
Bash
#switch to ctrl+a prefix
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
bind C-a send-prefix
|
|
|
|
#pane management
|
|
bind q split-window -h
|
|
bind f split-window
|
|
bind a select-pane -L
|
|
bind s select-pane -R
|
|
bind w select-pane -U
|
|
bind r select-pane -D
|
|
|
|
#window management
|
|
bind Q new-window -n '%%'
|
|
bind A next-window
|
|
bind S previous-window
|
|
bind W last-window
|
|
bind R rename-window '%%'
|
|
bind F find-window '%%'
|
|
|
|
#promote/demote pane
|
|
bind z resize-pane -Z
|
|
|
|
#detach
|
|
bind C-d detach
|
|
|
|
#limit window size to clients connected to window instead of to session
|
|
setw -g aggressive-resize on
|
|
|
|
#enable mouse mode
|
|
set -g mouse on
|