-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
109 lines (89 loc) · 3.47 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
set -g prefix ^a
unbind ^b
bind a send-prefix
set -g history-limit 65535
set -g base-index 1
set -g pane-base-index 1
set -g default-terminal "screen-256color"
# status line left side
set -g status-utf8 on
set -g status-left "#S-#I-#P"
set -g status-right "%Y-%m-%d %H:%M"
set -g status-interval 5
set -g status-justify centre
set -g status-keys vi
setw -g mode-keys vi
bind - splitw -v # 分割成上下两个窗口
unbind '"'
bind - splitw -v # 分割成上下两个窗口
unbind %
bind | splitw -h # 分割成左右两个窗口'"'
bind k selectp -U # 选择上窗格
bind j selectp -D # 选择下窗格
bind h selectp -L # 选择左窗格
bind l selectp -R # 选择右窗格
bind-key ^k resize-pane -U 10
bind-key ^j resize-pane -D 10
bind-key ^h resize-pane -L 10
bind-key ^l resize-pane -R 10
bind ^p swapp -U # 与上窗格交换
bind ^n swapp -D # 与下窗格交换
# app
unbind !
bind ! splitw -h htop
bind m command-prompt "splitw -h 'exec man %%'"
#copy/vi mode
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind r source-file ~/.tmux.conf \; display "Reloaded!"
#### COLOUR (Solarized dark)
# default window title colors
#set-window-option -g window-status-fg brightblue #base0
#set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
#set-window-option -g window-status-current-fg brightred #orange
#set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
#set-option -g pane-border-fg black #base02
#set-option -g pane-active-border-fg brightgreen #base01
# message text
#set-option -g message-bg black #base02
#set-option -g message-fg brightred #orange
# pane number display
#set-option -g display-panes-active-colour blue #blue
#set-option -g display-panes-colour brightred #orange
# clock
#set-window-option -g clock-mode-colour green #green
# This tmux statusbar config was created by tmuxline.vim
# on 六, 17 1月 2015
set -g status-bg "colour234"
set -g message-command-fg "colour231"
set -g status-justify "left"
set -g status-left-length "100"
set -g status "on"
set -g pane-active-border-fg "colour254"
set -g message-bg "colour31"
set -g status-right-length "100"
set -g status-right-attr "none"
set -g message-fg "colour231"
set -g message-command-bg "colour31"
set -g status-attr "none"
set -g status-utf8 "on"
set -g pane-border-fg "colour240"
set -g status-left-attr "none"
setw -g window-status-fg "colour250"
setw -g window-status-attr "none"
setw -g window-status-activity-bg "colour234"
setw -g window-status-activity-attr "none"
setw -g window-status-activity-fg "colour250"
setw -g window-status-separator ""
setw -g window-status-bg "colour234"
set -g status-left "#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=colour236,bg=colour234,nobold,nounderscore,noitalics]#[fg=colour247,bg=colour236] %Y-%m-%d %H:%M #[fg=colour252,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour235,bg=colour252] #h "
setw -g window-status-format "#[fg=colour244,bg=colour234] #I #[fg=colour250,bg=colour234] #W#F "
setw -g window-status-current-format "#[fg=colour234,bg=colour31,nobold,nounderscore,noitalics]#[fg=colour117,bg=colour31] #I #[fg=colour231,bg=colour31,bold] #W#F #[fg=colour31,bg=colour234,nobold,nounderscore,noitalics]"
set-window-option -g window-status-fg "colour235"
set-window-option -g window-status-bg "colour244"
set-window-option -g window-status-attr "none"