-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf.v1
68 lines (58 loc) · 1.63 KB
/
.tmux.conf.v1
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
67
#取消默认的设定键
#unbind C-b
#unbind &
unbind %
#unbind w
unbind '"'
#Escape键
set -g prefix C-g
set -g base-index 1
set -g pane-base-index 1
#解决bash ctrl a冲突问题
bind a send-prefix
#窗口切分快捷键
bind \ split-window -h
bind - split-window -v
bind K confirm-before -p "kill-window #W? (y/n)" kill-window
bind '"' choose-window
#Pane之间切换的快捷键
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#Pane大小调整快捷键
bind < resize-pane -L 5
bind > resize-pane -R 5
bind _ resize-pane -D 5
bind + resize-pane -U 5
#设置window属性
setw -g window-status-current-bg blue
setw -g window-status-current-fg white
setw -g window-status-current-attr bright
setw -g window-status-attr bright
setw -g window-status-format '#[fg=cyan,dim]#I#[fg=blue] #[default]#W#[fg=grey,dim]'
#setw -g window-status-format '<#I>#{pane_current_path}'
setw -g window-status-current-format '#[fg=cyan,dim]#I#[fg=blue] #[default]#W#[fg=grey,dim]'
#setw -g window-status-current-format '#[fg=cyan,dim]<#I>#{pane_current_path}'
setw -g monitor-activity on
#设置状态栏
set -g status on
set -g status-utf8 on
set -g status-left ""
set -g status-left-length 90
set -g status-interval 2
set -g status-fg white
set -g status-bg black
set -g status-right "%Y/%m/%d %H:%M"
set -g status-justify centre
set -g default-terminal "screen"
set -g status-position bottom
set -g visual-activity on
#设置滚屏,屏幕历史长度
set -g history-limit 10000
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
setw -g mode-keys vi
setw -g utf8 on
setw -g automatic-rename on
#其他设置
set -sg escape-time 0