-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.tmux.conf
221 lines (189 loc) · 8.42 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# Written by clyang _AT_ clyang.net
# Modified by Samuelololol
# 2010, 11/25 @NSYSU
# 2012, 08/06 @Taipei
# ___ ___
# ___ ___ /\_ \ /\_ \ (R)
# sssssssssssssamuelolololololololol /\_ \ /\_ \ ___\//\ \ ___\//\ \
# ____ __ ___ ___ __ __ __\//\ \ ___\//\ \ / __`\\ \ \ / __`\\ \ \
# /',__\ /'__`\ /' __` __`\/\ \/\ \ /'__`\\ \ \ / __`\\ \ \ /\ \L\ \\_\ \_/\ \L\ \\_\ \_
# /\__, `\\ \L\.\_/\ \/\ \/\ \ \ \_\ \\ __/ \_\ \_/\ \L\ \\_\ \\ \____//\____\ \____//\____\
# \/\____/ \__/.\_\ \_\ \_\ \_\ \____/ \____\/\____\ \____//\____\/___/ \/____/\/___/ \/____/
# \/___/ \/__/\/_/\/_/\/_/\/_/\/___/ \/____/\/____/\/___/ \/____/ by [email protected]
#
#
# tips:
# [window]
# swap windows:
# c-a :swap-window -s <source windows number(0-based)> -t <target windows number>
# [pane]
# merge another pane into current window
# c-a :join-pane -s <source window number(0-based)>.<source pane number(0-based)>
# split current pane to a window
# c-a !
#
# shell setting
set-option -g default-shell /bin/zsh
# help "open" command to attach the display on mac
# install reattach-to-user-namespace first
# > brew install reattach-to-user-namespace
#set -g default-command "reattach-to-user-namespace -l /bin/zsh"
# General Setting
set-option -g prefix C-a
# Statusbar properties.
#set-window-option -g automatic-rename on
set-window-option -g automatic-rename off
set-window-option -g allow-rename off
set-option -g allow-rename off
set-window-option -g window-status-activity-style bg="cyan"
set-option -g display-time 3000
set-option -g status-bg black
set-option -g status-fg white
#set-option -g visual-activity on
set-option -g visual-activity on # ------+
set-option -g visual-bell off # | send activity to the window whom turn on
# | the `monitor-activity` option
set-window-option -g monitor-activity off # <-----+
set-window-option -g mode-keys vi
#set-option -g default-terminal "screen-256color"
#set-option -g default-terminal "rxvt-unicode-256color"
set-option -g status-position top
set-option -g status-interval 60
set-option -g status-left-length 20
set-option -g status-left "#H ㊣ #[default]"
set-option -g status-right-length 170
set-option -g status-right "#[default]#(~/dotfiles/commands/pomodoro.py perc) #[fg=white,bg=blue]#(~/dotfiles/commands/pomodoro.py pgr)#[default] #[fg=yellow]%H:%M #[fg=white]%a %m-%d-%Y #[fg=green][#I:#P]#[default]"
#set-option -g status-right "#[fg=yellow]#(~/dotfiles/commands/vimnews.py) #[default] #[fg=yellow]%H:%M #[fg=white]%a %m-%d-%Y #[fg=green]#T #[default]"
set-window-option -g window-status-format \
'#[fg=cyan]❏ #[default]#{=5:window_name}#[default]'
set-window-option -g window-status-current-format \
'#[fg=yellow,bg=black]☑ #[fg=yellow,bold,bg=blue]➫ #[fg=white]#{=10:window_name}#[default]'
#set-window-option -g window-status-alert-fg red
#pane feature
#active window/pan
set-option -g window-active-style bg='black'
set-option -g pane-active-border-style bg='black'
set-option -g pane-active-border-style fg='colour051'
#non-active window/pan
set-option -g window-style bg='colour236'
set-option -g pane-border-style fg='black'
set-option -g pane-border-style bg='black'
#different view size to fit each client
set-window-option -g aggressive-resize on
set -s escape-time 0
# Binding key
bind C-a send-prefix
bind s split-window
bind v splitw -h
#\; selectl main-vertical
# resize
#bind -n F5 resizep -L 1
#bind -n F6 resizep -D 1
# select pane
#bind -n F7 select-pane -t :.+
#bind -n F8 select-pane -t :.-
bind -n F9 confirm-before kill-pane
bind -n F10 new-window
bind -n F11 previous-window
bind -n F12 next-window
# Fix putty/pietty function key problem
#set-option -g terminal-overrides "xterm*:kf1=\e[11~:kf2=\e[12~:kf3=\e[13~:kf4=\e[14~:kf5=\e[15~:kf6=\e[17~:kf7=\e[18~:kf8=\e[19~"
set-option -g terminal-overrides "screen*:kf1=\e[11~:kf2=\e[12~:kf3=\e[13~:kf4=\e[14~:kf5=\e[15~:kf6=\e[17~:kf7=\e[18~:kf8=\e[19~"
# copy/paste
# vim
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi [ send-keys -X begin-selection
bind-key -T copy-mode-vi ] send-keys -X copy-selection
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi c-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# buffer
bind Space choose-buffer
if-shell '[ "$(uname)" = "Darwin" ]' \
'set-option -g default-terminal "screen-256color"' \
'set-option -g default-terminal "rxvt-unicode-256color"'
# reference from
# http://tangledhelix.com/blog/2012/07/16/tmux-and-mouse-mode/
# Toggle mouse on with ^B m
# (deprecated)
#bind m \
# set-option -g mode-mouse on \;\
# set-option -g mouse-resize-pane on \;\
# set-option -g mouse-select-pane on \;\
# set-option -g mouse-select-window on \;\
# display 'Mouse: ON'
# Toggle mouse off with ^B M
# (deprecated)
#bind M \
# set-option -g mode-mouse off \;\
# set-option -g mouse-resize-pane off \;\
# set-option -g mouse-select-pane off \;\
# set-option -g mouse-select-window off \;\
# display 'Mouse: OFF'
#Some consoles really really don't like attempts to set the window title. Tell
#tmux not to do this by turning off the "set-titles" option (you can do this
#in .tmux.conf):
set-option -g set-titles off
#set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program
#bind-key j command-prompt -p "join pane from:" "join-pane -s !"
bind-key c command-prompt -p "window name:" "new-window; rename-window '%%'"
# Old Setting
# ==================================================================
#set-option -g status-right "#(wget --timeout=5 -O - -q http://www.iheartquotes.com/api/v1/random?max_lines=1 | cut -c 1-30) #[fg=yellow]%H:%M #[fg=white]%a %m-%d-%Y #[fg=green]#T #[default]"
#set-window-option -g window-status-format '#[fg=red,bg=white]㊝#[default]#[fg=blod]#W Σ(°д°lll )#[default]'
#set-window-option -g window-status-format '#[fg=red,bg=white]㊝#[default]#[fg=blod]#W ٩͡[๏̯͡๏]۶#[default]'
#set-window-option -g window-status-format '#[fg=blod]#W #[fg=red,bg=white]㊝#[default]☜[๏̯͡๏]#[default]'
#set-window-option -g window-status-format '#[fg=red,bg=white]Ⓛ Ⓛ Ⓛ #[default]#W#[default]'
#set-window-option -g window-status-current-format \
# '#[fg=white,bg=red]㊝#[fg=white,bold,bg=blue](`Д´)-φ_#W#[default]'
# '#[fg=red,bg=white]㊝#[fg=white,bold,bg=blue](΄◞ิ.̫◟ิ‵)y_#W#[default]'
# '#[fg=red,bg=white]㊝#[fg=white,bold,bg=blue](`Д´)-#[fg=red]φ_#[fg=white,bg=blue] #W#[default]'
# '#[fg=red,bg=white] ➫#[fg=white,bold,bg=blue](`Д´)-#[fg=red]φ_#[fg=white,bg=blue] #W#[default]'
#ΦΧΨΩανξοπρ
#στυφχψωΑΒΓ
#ΔΕΖΗΘΙΚΛΜΝ
#ΞΟΠΡΣΤΥζηθ
#λμδβ
#㊬㊯㊊㊋㊌㊍㊎㊏㊐㊣
#㊚㊛㊙㊟㊕㊗㊡㊝㊭㊮
#㊑㊒㊓㊔㊕㊖㊘㊜㊞㊠
#㊢㊤㊥㊦㊧㊨㊩㊪㊫㊰
# ❤ ღ ❥ ♡ ♥
# ★ ✰ ☆ ✩ ✫ ✬ ✭ ✮ ✡
# ↑↓←→↖↗↙↘↔↕
# ➻ ➼ ➽ ➸ ➳ ➺ ➻ ➴ ➵ ➶
# ➷ ➹ ▶ ➩ ➪ ➫ ➬ ➭ ➮ ➯
# ➱ ➲ ➾ ➔ ➘ ➙ ➚ ➛ ➜ ➝
# ➞ ➟ ➠ ➡ ➢ ➣ ➤ ➥ ➦ ➧
# ➨ ↚ ↛ ↜ ↝ ↞ ↟ ↠ ↠ ↡
# ↢ ↣ ↤ ↤ ↥ ↦ ↧ ↨ ⇄ ⇅
# ⇆ ⇇ ⇈ ⇉ ⇊ ⇋ ⇌ ⇍ ⇎ ⇏
# ⇐ ⇑ ⇒ ⇓ ⇔ ⇖ ⇗ ⇘ ⇙ ⇜
# ↩ ↪ ↫ ↬ ↭ ↮ ↯ ↰ ↱ ↲
# ↳ ↴ ↵ ↶ ↷ ↸ ↹ ↺ ↻ ↼
# ↽ ↾ ↿ ⇀ ⇁ ⇂ ⇃ ⇞ ⇟ ⇠
# ⇡ ⇢ ⇣ ⇤ ⇥ ⇦ ⇧ ⇨ ⇩ ⇪
# ♞ ♘ ♙ ♟ ♕ ♛ ☬ ♝ ☫ ♚
# ☃ ☸ ♗ 〠☊ ☋ ❡ ๑ ♨ ❖
# ☇ ☈۞ ۩ ♤ ♠ ♧ ♣ ◇ ◆
# ▧ ◘ ▩ ▣ ◙ ▨ ▤ ▥ ▦ ✠
# ☜ ☞ ☎ ☏ ♂ ♀ ☼ ♈ ☄ ﺴ
# ◈ ♦ ◊ ₪ ✌ ☃ ↂ ☁ ☂ ¤
# ☽ ☾ ✙ ✈ ✉ ✁ ㍿№ ✎ ✐
# ◎ ○ ● ⊕ ⊙ ◕ ◑ ◐ ™ ℗
# ℡ ✔ ☑ ☒ ☢ ▪ ▫ □ ■
# ❈ ❉ ❧ ❦ ❁ ❀ ✳ ✲ ✱ ❈
# ❃ ❂ ❁ ❀ ✿ ✾ ✽ ✼ ✻ ✺
# ✹ ✸ ✷ ✶ ✵ ✴ ❄ ❅ ❆ ❇
# ┋ ┇ ┅ ﹊﹍﹍∈ ∋ Π
# ▬ ☍ △ ▽ ▲ ▼ ► ◄ 卍卐
# ☌ ❣ ✆ ✇ ✑ ✒ ✓ ✕ ✖
# ✢ ✣ ✤ ✥ ✟ ✧ ❍ ❏ ❐ ❒
# ✗ ✘ ✚ ✜ ✝
#(`Д´)-φ_
#(΄◞ิ.̫.̫◟ิ‵)y_
#(`Д´)-φ_
#(`Д´)-φ_
#Σ(°д°lll )
#٩͡[๏̯͡๏]۶
#☜[๏̯͡๏]۶