9
|
1 # improve colors
|
|
2 set -g default-terminal 'screen-256color'
|
7
|
3
|
|
4 bind s split-window -v
|
|
5 bind v split-window -h
|
|
6
|
9
|
7 # act like vim
|
|
8 setw -g mode-keys vi
|
137
|
9 set -g status-keys vi
|
|
10 bind-key -t vi-edit Up
|
|
11 bind-key -t vi-eidt Down
|
7
|
12 bind h select-pane -L
|
|
13 bind j select-pane -D
|
|
14 bind k select-pane -U
|
|
15 bind l select-pane -R
|
9
|
16 bind-key -r C-h select-window -t :-
|
|
17 bind-key -r C-l select-window -t :+
|
|
18
|
|
19 #act like GNU screen
|
|
20 unbind C-b
|
|
21 set -g prefix C-a
|
7
|
22
|
137
|
23 bind Escape copy-mode
|
|
24
|
7
|
25 # resize panes like vim
|
|
26 # feel free to change the "1" to however many lines you want to resize by, only
|
|
27 # one at a time can be slow
|
|
28 bind < resize-pane -L 1
|
|
29 bind > resize-pane -R 1
|
|
30 bind - resize-pane -D 1
|
|
31 bind + resize-pane -U 1
|
|
32
|
9
|
33 # start window numbers at 1 to match keyboard order with tmux window order
|
|
34 set -g base-index 1
|
7
|
35
|
9
|
36 # renumber windows sequentially after closing any of them
|
|
37 set -g renumber-windows on
|
7
|
38
|
0
|
39
|
|
40
|
9
|
41 # remove administrative debris (session name, hostname, time) in status bar
|
|
42 set -g status-left ''
|
|
43 set -g status-right ''
|
|
44
|
|
45 # increase scrollback lines
|
|
46 set -g history-limit 10000
|
|
47
|
|
48 # switch to last pane
|
|
49 bind-key C-a last-pane
|
|
50
|
|
51 # Local config
|
|
52 if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local'
|
0
|
53 bind -t vi-copy 'v' begin-selection
|
|
54 bind -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy"
|