-
Notifications
You must be signed in to change notification settings - Fork 2
/
dot_tmux.conf
46 lines (41 loc) · 1.3 KB
/
dot_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
unbind %
set -g prefix C-q
set -g default-terminal "screen-256color"
set -g status-bg color235
set -g status-justify centre
set -g status-left-length 80
set -g status-right-length 80
set -g status-left " #[fg=red][#[fg=green]#S#[fg=red]]#[fg=red][ #[fg=green]#H #[fg=red]]"
set -g status-right "#[fg=red][ #[fg=green]%H:%M #[fg=magenta]%a %m-%d #[fg=red]] "
set -g window-status-format '#[fg=red,bold]#I #W'
set -g window-status-current-format '#[fg=blue,bold,reverse]#I #W'
# 窗口操作
bind-key c new-window -c "#{pane_current_path}"
bind-key d detach-client
bind-key C-q last-window
bind-key q last-window
bind-key p previous-window
bind-key n next-window
# pane操作
bind | split-window -h
bind _ split-window -v
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
# 其他全局设置
set-option -g mouse off
set-option -g monitor-activity on
set-option -g base-index 1
set-option -g visual-activity on
set-option -g allow-rename off
set-option -g automatic-rename off
set-option -g status-keys vi
set-option -g mode-keys vi
set-option -g history-limit 10000
# plugins
# set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-copycat'
# set -g @plugin 'tmux-plugins/tmux-yank'
# run '~/.tmux/plugins/tpm/tpm'