-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
57 lines (47 loc) · 1.43 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
# Allow for reloading
bind r source-file ~/.tmux.conf
set-option -g set-titles on
set -g set-titles-string "#T"
# Keep window names fixed
set-option -g allow-rename off
# Resizing
bind-key J resize-pane -D 10
bind-key K resize-pane -U 10
bind-key H resize-pane -L 10
bind-key L resize-pane -R 10
bind-key M-j resize-pane -D 3
bind-key M-k resize-pane -U 3
bind-key M-h resize-pane -L 3
bind-key M-l resize-pane -R 3
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Prevent ctrl-D exit
set-environment -g 'IGNOREEOF' 2
# History.
set -g history-limit 10000
# initialize sessions
bind S source-file ~/.tmux/session1
bind s source-file ~/.tmux/session2
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-dir '/mnt/efs/tmux'
# for vim
set -g @resurrect-strategy-vim 'session'
# automatically restore tmux session on restart.
# DISABLED for sherlock
# set -g @continuum-boot 'on'
# set -g @continuum-restore 'on'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of
# tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
set -g default-terminal $TERM