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