-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
43 lines (36 loc) · 1.24 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 C-b
set -g prefix C-a
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# -g : global
set -g mouse on
unbind v
unbind h
unbind %
unbind '"'
# -c : excute a shell command, #{pane_current_path} : simply bring you back where you were in the filesystem
bind v split-window -h -c "#{pane_current_path}"
bind h split-window -v -c "#{pane_current_path}"
# -n : means that these binding don't use the prefix key
bind -n C-h select-pane -L
bind -n C-j select-pane -D
bind -n C-k select-pane -U
bind -n C-l select-pane -R
set -g history-limit 30000
# M-j : alt+j
bind -n M-j previous-window
bind -n M-k next-window
# mode-keys are the same as vi
set-window-option -g mode-keys vi
unbind -T copy-mode-vi Space;
unbind -T copy-mode-vi Enter;
#xsel copy to clipboard, you can use prefix key -> ] to paste what's in the tmux paste buffer
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel --clipboard"
### plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/double/cyan'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'