-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
46 lines (38 loc) · 1.17 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# first window is first window
# n-th window is n-th window
set-option -g base-index 1
set-option -g renumber-windows on
set-option -g status-position top
# mouse isn't so bad after all
set-option -g mode-mouse on
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
# Window creation
bind-key -n M-c new-window
# Alt+Number window switching
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
# Alt+Arrow window switching
bind-key -n M-Left previous-window
bind-key -n M-Right next-window
# Pane splitting
bind-key -n M-s split-window -v
bind-key -n M-v split-window -h
# Alt+Arrow pane rotation
bind-key -n M-Down rotate-window -D
bind-key -n M-Up rotate-window -U
# Alt+ViArrow pane selection
bind-key -n M-h select-pane -L
bind-key -n M-j select-pane -D
bind-key -n M-k select-pane -U
bind-key -n M-l select-pane -R
# Pane zooming
bind-key -n M-z resize-pane -Z