-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot.tmux.conf
193 lines (148 loc) · 3.72 KB
/
dot.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
#
# .tmux.conf
#
# shell
set -g default-shell $SHELL
set -g default-command "if test $(uname -s) = Darwin && which reattach-to-user-namespace > /dev/null; then reattach-to-user-namespace -l $SHELL; else $SHELL --login; fi"
## window mode
setw -g mode-keys emacs
## key bindings
# prefix
unbind C-b
set -g prefix C-z
bind C-z send-prefix
# reload
bind r source-file ~/.tmux.conf\; display-message "Reload Config!!"
# select
unbind s
unbind f
bind s command-prompt -p "select-window:" "select-window -t '%%'"
bind f command-prompt -p "find-window:" "find-window '%%'"
# rename-window A
unbind A
bind A command-prompt "rename-window %%"
# last-window ^A
unbind ^A
bind ^t last-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# move pane (rotate) C-o
bind C-o select-pane -t :.+
# new-window ^C c
unbind ^C
bind ^C new-window -c "#{pane_current_path}"
unbind c
bind c new-window -c "#{pane_current_path}"
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
unbind n
bind n next-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# quit \
unbind '\'
bind '\' confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-pane"
# kill session
bind C-b kill-session
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
# split -v |
unbind |
bind | split-window
# split window
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# next-layout
unbind " "
bind " " next-layout
# windowlist -b "
unbind '"'
bind '"' choose-window
# disable C-o (switch pane)
unbind ^O
# man
bind w command-prompt "split-window -p 65 'exec man %%'"
# ssh
bind S command-prompt "new-window -n %1 'ssh %1'"
# reattach-to-user-namespace
bind C-c run-shell 'tmux save-buffer - | reattach-to-user-namespace pbcopy'
# clock
setw -g clock-mode-colour colour64 #green
# default window title colors
# colour64=base0
setw -g window-status-style bg=default,fg=colour64,dim
# active window title colors
# colour77=lightgreen, colour240=base01
setw -g window-status-current-style fg=colour77,bg=colour240,default
# base index: tmuxinator
set -g base-index 0
# enable 256 color
set -g default-terminal "screen-256color"
## buffer size
set -g buffer-limit 10000
# pane number display
set -g display-panes-active-colour colour33 #blue
set -g display-panes-colour colour166 #orange
# escape delay
set -sg escape-time 1
# message text
# colour235 #base02 colour142 #yellow
set -g message-style bg=colour235,fg=colour142,bold
# monitor activity
set -g monitor-activity on
set -g visual-activity on
# mouse
set -gw mouse off
bind-key m \
set-option -g mouse on \; \
display-message "Mouse: ON"
bind-key M \
set-option -g mouse off \; \
display-message "Mouse: off"
# pane border
set -g pane-border-style fg=colour240 #base01
set -g pane-active-border-style fg=colour213 #purple-pink
## terminal
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
## status bar
set -g status-left-length 30
set -g status-left '#[fg=colour222,bg=colour235]#H#[#[default]' #yellow, base01
set -g status-right '#[fg=colour224,bg=colour235,bold][%a %b %d, %Y %H:%M:%S]#[default]' #base01, base02
## title
set -g set-titles on
set -g set-titles-string '#W'
# default statusbar colors
# colour235=base02, colour77=lightgreen
set -g status-style bg=colour235,fg=colour77,default
# statusbar interval
set -g status-interval 1
# window status format
set -g window-status-format " #I $:#W "
set -g window-status-current-format " #I $$:#W "