tmux config
This commit is contained in:
parent
1d1bdff14a
commit
0abeb66817
39
tmux/tmux.conf
Normal file
39
tmux/tmux.conf
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
set-option -gw xterm-keys on
|
||||||
|
# pane switch with vim-like controls
|
||||||
|
bind -n M-h select-pane -L
|
||||||
|
bind -n M-j select-pane -D
|
||||||
|
bind -n M-k select-pane -U
|
||||||
|
bind -n M-l select-pane -R
|
||||||
|
|
||||||
|
set -s escape-time 0
|
||||||
|
|
||||||
|
bind -n M-H resize-pane -L 2
|
||||||
|
bind -n M-J resize-pane -D 2
|
||||||
|
bind -n M-K resize-pane -U 2
|
||||||
|
bind -n M-L resize-pane -R 2
|
||||||
|
|
||||||
|
# alt tab for window shift
|
||||||
|
bind -n M-Tab next-window
|
||||||
|
bind -n M-BTab previous-window
|
||||||
|
|
||||||
|
# alt number for switch
|
||||||
|
bind-key -n M-1 select-window -t 0
|
||||||
|
bind-key -n M-2 select-window -t 1
|
||||||
|
bind-key -n M-3 select-window -t 2
|
||||||
|
bind-key -n M-4 select-window -t 3
|
||||||
|
bind-key -n M-5 select-window -t 4
|
||||||
|
bind-key -n M-6 select-window -t 5
|
||||||
|
bind-key -n M-7 select-window -t 6
|
||||||
|
bind-key -n M-8 select-window -t 7
|
||||||
|
bind-key -n M-9 select-window -t 8
|
||||||
|
|
||||||
|
|
||||||
|
# new window and split pane quickly
|
||||||
|
bind-key -n M-n new-window
|
||||||
|
bind-key -n M-v split-window -v
|
||||||
|
bind-key -n M-b split-window -h
|
||||||
|
bind-key -n M-q killp
|
||||||
|
|
||||||
|
|
||||||
|
# quick reload
|
||||||
|
bind r source-file ~/.tmux.conf; display "`~/.tmux.config` reloaded!"
|
Loading…
Reference in New Issue
Block a user