-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
59 lines (48 loc) · 1.5 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
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# split window
# split current window horizontally
bind - split-window -v
# split current window vertically
bind _ split-window -h
# pane navigation
bind -r h select-pane -L # move left
bind -r j select-pane -D # move down
bind -r k select-pane -U # move up
bind -r l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# pane resizing
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# window navigation
unbind n
unbind p
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window
bind Tab last-window # move to last active window
# 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 @plugin 'tmux-plugins/tmux-yank'
# -----tmux-continuum-----
# 备份时间间隔
set -g @continuum-save-interval '60'
# 启用自动恢复
set -g @continuum-restore 'on'
# 查看运行状态的插值
set -g status-right 'Continuum status: #{continuum_status} '
# -----tmux-continuum-----
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'