-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
46 lines (40 loc) · 1.07 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
unbind-key C-b
set -g prefix C-x
set -g history-limit 999999999
# 快捷键
bind u source-file ~/.tmux.conf \; display-message "Config reloaded..."
bind 1 break-pane
bind 2 split-window -h
bind o selectp -L
bind k kill-pane
bind C-c new-window
bind \ kill-session
bind C-n select-window -n
bind C-p select-window -p
bind y pasteb
bind C-d detach
bind b choose-session
bind C-b choose-window
bind-key -n M-x command-prompt
bind-key -n M-s copy-mode
bind-key -n "M-'" select-window -l
bind-key -n "M-n" select-window -n
bind-key -n "M-p" select-window -p
# 颜色配置
set -g status-bg magenta
set -g status-fg yellow
set -g status-attr bold
setw -g window-status-current-fg white
setw -g window-status-current-bg red
# 状态栏配置
setw -g window-status-format "#F#I:#T[#W]"
setw -g window-status-current-format "#F#I:#T[#W]"
set -g status-right ""
# 鼠标可以正常滚动
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
setw -g monitor-activity on
setw -g mode-keys vi
set -g status-keys emacs
# terminal标题栏设置
set -g set-titles on
set -g set-titles-string "#T[#W]"