-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
66 lines (56 loc) · 1.77 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
# Use Ctrl-a as prefix command
unbind C-b
set-option -g prefix C-a
# 重新加载配置
bind r source-file ~/.tmux.conf\; display "Reloaded!"
# 分割 pane
bind | split-window -h
bind - split-window -v
# 使用 vim 的操作键切换 pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# 鼠标操作
#set -g mode-mouse on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#set -g mouse-select-window on
# Start numbering at 1
set -g base-index 1
#开启窗口的UTF-8支持
set-window-option -g utf8 on
# Set status bar
setw -g utf8 on
set -g status-utf8 on
set -g status-bg "#585858"
set -g status-fg "#00FFFF"
set -g status-left-length 40
set -g status-left "#[fg=green]#H"
set -g status-right "#[fg=#ffffff]#(date +'%Y-%m-%d %H:%M:%S') "
#set -g status-interval 1000 # 状态栏更新时间间隔
set -g status-justify left
setw -g monitor-activity on
set -g visual-activity on
set-window-option -g window-status-current-bg "#ffffff"
set-window-option -g window-status-current-fg "#585858"
set-option -g status-keys vi # // 操作状态栏时的默认键盘布局;可以设置为vi或emacs
# Change pane split colours, don't need active borders
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
#// 此类设置可以在命令行模式中输入show-window-options -g查询
set-window-option -g mode-keys vi # // 复制模式中的默认键盘布局;可以设置为vi或emacs
setw -g mode-keys vi
unbind [
unbind p
bind C-y copy-mode
bind p paste-buffer
#bind -t vi-copy v begin-selection
#bind -t vi-copy y copy-selection
bind -t vi-copy Escape cancel