-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmux.conf
43 lines (39 loc) · 1.52 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
unbind-key C-b
set-option -sg prefix `
bind-key ` send-prefix
set-option -sg base-index 1
set-option -sg default-terminal "tmux-256color"
set-option -sg default-shell /bin/zsh
set-option -sg escape-time 10
set-option -sg history-limit 5000
set-option -sg mouse on
if-shell "uname | grep -q Darwin" \
"set-option -s copy-command 'pbcopy'" \
"set-option -s copy-command 'wl-copy'"
set-option -asg terminal-overrides ",*256color:RGB"
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
bind-key Down resize-pane -D 5
bind-key Up resize-pane -U 5
bind-key Left resize-pane -L 10
bind-key Right resize-pane -R 10
bind-key -n C-h send-keys Left
bind-key -n C-j send-keys Down
bind-key -n C-k send-keys Up
bind-key -n C-l send-keys Right
bind-key '"' split-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"
set-option -g mode-keys vi
bind-key -T copy-mode-vi v send-key -X begin-selection
if-shell "uname | grep -q Darwin" \
"bind -T copy-mode-vi y send-key -X copy-pipe-and-cancel" \
"bind -T copy-mode-vi y send-key -X copy-pipe-and-cancel"
if-shell "uname | grep -q Darwin" \
"bind -T copy-mode-vi Enter send-key -X copy-pipe-and-cancel" \
"bind -T copy-mode-vi Enter send-key -X copy-pipe-and-cancel"
if-shell "uname | grep -q Darwin" \
"bind -T copy-mode-vi MouseDragEnd1Pane send-key -X copy-pipe-and-cancel" \
"bind -T copy-mode-vi MouseDragEnd1Pane send-key -X copy-pipe-and-cancel"