-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
74 lines (59 loc) · 2.45 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
67
68
69
70
71
72
73
# prefix
unbind C-b # undo ctrl-b
set -g prefix C-a # rebind ctrl-a
bind C-a send-prefix
# Usring r reload tmux config
bind r source-file ~/.tmux.conf \; display-message "✅ Tmux Config Reloaded!"
# split pane using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Using C-a and Alt + arrow to update pane size
# Using mouse switch pane
set-option -g mouse-select-pane on
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# windows 配置
set -g renumber-windows on # 自动重新编号 windows
# 状态栏配置
# set -g status-justify left # 状态栏左对齐
set -g status-left-length 20 # 状态栏左侧宽度
# set -g status-right-length 50 # 状态栏右侧宽度
# 当前激活窗口在状态栏的展位格式
# setw -g window-status-current-format '#[bg=#ff0000, fg=#ffffff, bold]*[#I] #W*'
# 未激活每个窗口占位的格式
# setw -g window-status-format '#[bg=#0000ff, fg=#ffffff] [#I] #W '
# 状态栏左侧显式 session 的名字
# set -g status-left '#[bg=#01bb00] [#S] #[default] '
# 状态栏右侧显式的时间
set -g status-right '#[default] %Y-%m-%d %H:%M:%S '
# 设置时间刷新的间隔
set -g status-interval 1
set-option -g status-justify "left"
set-option -g status-fg cyan
set-option -g status-bg black
set -g pane-active-border-style fg=colour166,bg=default
set -g window-style fg=colour10,bg=default
set -g window-active-style fg=colour12,bg=default
set-option -g history-limit 64096
# default statusbar colors 默认状态栏颜色
set-option -g status-style bg=colour235,fg=colour136,default
# default window title colors 默认窗口标题颜色
set-window-option -g window-status-style fg=colour244,bg=colour234,dim
# active window title colors 当前 window 颜色
set-window-option -g window-status-current-style fg=colour166,bg=default,bright
# message 配置,也就是输入命令时候的显式样式
set-option -g message-style bg=colour235,fg=colour166
# pane border pane 包边
set-option -g pane-border-style fg=colour235 #base02
set-option -g pane-active-border-style fg=colour136,bg=colour235
# pane number display 当前正在使用 pane 的颜色显示
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
set-window-option -g clock-mode-colour colour64 #green