-
Notifications
You must be signed in to change notification settings - Fork 72
/
.tmux.conf
66 lines (48 loc) · 1.49 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
# History Config
set-option -g history-limit 10000
unbind C-b
set -g prefix C-a
# Not see this type for my eye ^_^
# auto window rename
set-window-option -g automatic-rename
# rm mouse mode fail
set -g default-terminal "screen-256color"
# Swicth Vim model delay
set -s escape-time 0
set -g mouse on
# Start numbering at 1
set -g base-index 1
setw -g pane-base-index 1
# When Close Window and recount number
set -g renumber-windows on
setw -g aggressive-resize on
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Reload [.tmux.conf]
bind-key r source-file ~/.tmux.conf
unbind '"' # unbind horizontal split
unbind % # unbind vertical split
bind-key - split-window -v # split pane horizontally
bind-key | split-window -h # split pane vertically
bind-key \ split-window -h # split pane vertically
# List Tmux panes
bind-key Space list-panes
# SetColor Prefix
set -g pane-border-fg green
set -g pane-active-border-fg green
set -g status-bg black
set -g status-fg white
# 对齐方式
set-option -g status-justify centre
# 左下角
set-option -g status-left '#[bg=black,fg=green][#[fg=cyan]#S#[fg=green]]'
set-option -g status-left-length 20
# 窗口列表
setw -g automatic-rename on
set-window-option -g window-status-format '#[dim]#I:#[default]#W#[fg=grey,dim]'
set-window-option -g window-status-current-format '#[fg=cyan,bold]#I#[fg=green]:#[fg=cyan]#W#[fg=dim]'
# 右下角
set -g status-right '#[fg=green][#[fg=cyan]%Y-%m-%d#[fg=green]]'