unbind C-b set-option -g prefix bind-key send-prefix bind source-file

 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
unbind C-b
set-option -g prefix `
bind-key ` send-prefix
bind r source-file ~/.tmux.conf
# switch windows alt+number
bind-key -n M-0 select-window -t 0
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
set -g base-index 1
setw -g pane-base-index 1
set-option -g status-position top
set-window-option -g window-status-current-bg red
set-window-option -g window-status-current-fg black
set-window-option -g window-status-bg black
set-window-option -g window-status-fg white
set-window-option -g status-bg black
set-window-option -g status-fg white