-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
41 lines (33 loc) · 1.05 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
# Use c-g instead of c-b as the prefix
unbind C-b
set -g prefix C-g
bind C-g send-prefix
bind g send-prefix
# window numbering
set -g base-index 1
set -g renumber-windows on
bind-key Left swap-window -t -1
bind-key Right swap-window -t +1
# vi-style controls for copy mode
setw -g mode-keys vi
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe "pbcopy"
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
bind < resize-pane -L 5
bind > resize-pane -R 5
bind - resize-pane -D 3
bind + resize-pane -U 3
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
# in case of error 127: `git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm`
run '~/.tmux/plugins/tpm/tpm'
# reload conf
bind r source ~/.tmux.conf \; display-message "Config reloaded from ~/.tmux.conf"