-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
65 lines (53 loc) · 2.04 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
force_color_prompt=yes
# reload settings # 重新读取加载配置文件
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Ctrl-Left/Right cycles thru windows (no prefix)
# 不使用prefix键,使用Ctrl和左右方向键方便切换窗口
bind-key -n "C-Left" select-window -t :-
bind-key -n "C-Right" select-window -t :+
# displays
bind-key * list-clients
set -g default-terminal "xterm-256color" # use 256 colors
set -g display-time 5000 # status line messages display
# set -g status-utf8 on # enable utf-8
set -g history-limit 100000 # scrollback buffer n lines
setw -g mode-keys vi # use vi mode
# set-window-option -g mode-mouse on # 启动鼠标翻滚屏幕
#允许鼠标操作:直接包括选择Window pane 和resize pane
set -g mouse on
#up
bind-key "k" select-pane -U
#down
bind-key "j" select-pane -D
#left
bind-key "h" select-pane -L
#right
bind-key "l" select-pane -R
# start window indexing at one instead of zero 使窗口从1开始,默认从0开始
set -g base-index 1
# key bindings for horizontal and vertical panes
unbind %
bind | split-window -h # 使用|竖屏,方便分屏
unbind '"'
bind - split-window -v # 使用-横屏,方便分屏
# window title string (uses statusbar variables)
set -g set-titles-string '#T'
# status bar with load and time
set -g status-bg blue
set -g status-fg black
set -g status-left-fg black # 左边的whoami的标签
set -g status-left-bg blue
set -g status-right-fg black # the right
set -g status-right-bg blue
set -g status-left-length 90
set -g status-right-length 90
set -g status-left '[#(whoami)]'
set -g status-right '[#(date +" %m-%d %H:%M ")]'
set -g status-justify "centre"
set -g window-status-format '#I #W'
set -g window-status-current-format ' #I #W '
setw -g window-status-current-bg black
setw -g window-status-current-fg white # the current fg set to white
# pane border colors
#set -g pane-active-border-fg '#55ff55'
#set -g pane-border-fg '#555555'