blob: b2e3fff07027e25eccc72b2ea949d7cfdc22a945 (
plain)
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
|
# modify the prefix
unbind ^b
set -g prefix 'M-`'
# vim mode
setw -g mode-keys vi
# copy and paste like vim
bind -T copy-mode-vi 'v' send -X begin-selection
bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# swtich between pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize the pane
# bind h resize-pane -L 10
# bind l resize-pane -R 10
# bind k resize-pane -U 5
# bind j resize-pane -D 5
# color of tmux
set -g default-terminal "screen-256color"
|