-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
68 lines (52 loc) · 1.61 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# reload config file
bind r source ~/.tmux.conf
# enable mouse
set -g mouse on
# copy mode improvements
setw -g mode-keys vi
set -g @yank_action 'copy-pipe'
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
# start counting from 1
set -g base-index 1
setw -g pane-base-index 1
# reorder indexes automatically
set-option -g renumber-windows on
# message timeout
set -g display-time 4000
# enable true colours
set -g default-terminal 'tmux-256color'
set -sa terminal-overrides ',tmux-256color:Tc,xterm-256color:Tc,*:sitm=\E[3m'
# don't delay vim's escape
set -sg escape-time 0
# status bar
set -g status-position top
set-option -g focus-events on
set-option -g status-interval 1
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
source ~/.tmux.theme.conf
# plugins
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @continuum-boot 'on'
set -g @continuum-restore 'on'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# resize binds
bind C-h resize-pane -L 1
bind C-j resize-pane -D 1
bind C-k resize-pane -U 1
bind C-l resize-pane -R 1
bind-key h select-pane -L
bind-key C-h select-pane -L
bind-key j select-pane -D
bind-key C-j select-pane -D
bind-key k select-pane -U
bind-key C-k select-pane -U
bind-key l select-pane -R
bind-key C-l select-pane -R