/
private_dot_tmux.conf
197 lines (159 loc) · 6.51 KB
/
private_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
194
195
196
197
# tmux.conf
set-option -g prefix C-a # Use C-a instead of C-b
set-option -g mouse on
set-option -g base-index 1
set-option -g display-panes-time 3000
set-option -g focus-events on
set-window-option -g monitor-activity on
set-option -g visual-activity on
# Plugin Settings
# set-option -g @tpm-install 'I'
# set-option -g @tpm-update 'U'
# set-option -g @tpm-clean 'M-u'
set-option -g @resurrect-save 'C-s'
set-option -g @resurrect-restore 'C-r'
# set-option -g @resurrect-processes ''
# set-option -g @resurrect-strategy-$name ''
set-option -g @continuum-save-interval '15'
# set-option -g @continuum-restore 'off'
# set-option -g @continuum-boot 'on'
# set-option -g @copycat_search '/'
# set-option -g @copycat_git_special 'C-g'
# set-option -g @copycat_file_search_option 'C-f'
# set-option -g @copycat_url_search 'C-u'
# set-option -g @copycat_digit_search 'C-d'
# set-option -g @copycat_hash_search 'M-h'
# set-option -g @copycat_ip_search 'M-i'
# set-option -g @open 'o'
# set-option -g @open-editor 'C-o'
set-option -g @prefix_highlight_fg white
set-option -g @prefix_highlight_bg blue
set-option -g @prefix_highlight_show_copy_mode on
set-option -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow,bold'
# set-option -g @pane_resize '5'
set-option -g @sessionist-goto 'G'
# set-option -g @sessionist-alternate 'S'
# set-option -g @sessionist-new 'C'
# set-option -g @sessionist-promote-pane '@'
# set-option -g @sessionist-kill-session 'X'
# set-option -g @sidebar-tree 'Tab'
# set-option -g @sidebar-tree-focus 'Bspace'
# set-option -g @sidebar-tree-page 'sh -c "LESS= less --dumb --chop-long-lines --tilde --IGNORE-CASE --RAW-CONTROL-CHARS"'
# set-option -g @sidebar-tree-position 'left'
# set-option -g @sidebar-tree-width '40'
# set-option -g @urlview-key 'u'
# set-option -g @yank_line 'y'
# set-option -g @yank_pane_pwd 'Y'
# set-option -g @copy_mode_yank 'y'
# set-option -g @copy_mode_put 'Y'
# set-option -g @copy_mode_yank_put 'M-y'
# set-option -g @copy_mode_yank_wo_newline '!'
# set-option -g @yank_selection 'clipboard'
set-option -g @shell_mode 'vi'
# set-option -g @custom_copy_command ''
# set-option -g @logging-key 'P'
# set-option -g @screen-capture-key 'M-p'
# set-option -g @save-complete-history-key 'M-P'
# set-option -g @clear-history-key 'M-c'
# set-option -g @logging-path ''
# set-option -g @logging-filename ''
# set-option -g @screen-capture-path ''
# set-option -g @screen-capture-filename ''
# set-option -g @save-complete-history-path ''
# set-option -g @save-complete-history-filename ''
# set-option -g @fpp-key 'f'
# Status Bar Display {
set-option -g status-interval 2
set-option -g status-position bottom
set-option -g status-bg colour234
set-option -g status-fg colour137
set-option -g status-attr dim
set-option -g status-justify left
set-option -g status-left-length 20
set-option -g status-right-length 50
set-option -g status-left ''
set-option -g status-right ' #{prefix_highlight} ±#{git_branch} (#S #I.#P) 💾 #{continuum_status}'
# }
# Window status field {
set-window-option -g window-status-current-fg colour81
set-window-option -g window-status-current-bg colour238
set-window-option -g window-status-current-attr bold
set-window-option -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
set-window-option -g window-status-fg colour138
set-window-option -g window-status-bg colour235
set-window-option -g window-status-attr none
set-window-option -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-attr bold
setw -g window-status-bell-fg colour255
setw -g window-status-bell-bg colour1
# }
# }
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# Pane display {
set-window-option -g pane-base-index 1
set-option -g pane-border-fg black
set-option -g pane-border-bg colour235
set-option -g pane-active-border-fg colour51
set-option -g pane-active-border-bg colour236
# }
set-option -g message-fg colour166
set-option -g message-bg colour232
set-option -g message-command-fg blue
set-option -g message-command-bg black
set-option -g message-attr bold
set-window-option -g mode-attr bold
set-window-option -g mode-fg colour196
set-window-option -g mode-bg colour238
set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166
set-window-option -g clock-mode-colour colour135
set-window-option -g mode-keys vi
# Do not prompt before killing a pane or window
unbind-key x
bind-key x kill-pane
unbind-key &
bind-key & kill-window
# Create the 'g' key-table for extended operations.
bind-key -T prefix g switch-client -Tgtable
bind-key -T gtable y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind-key -T gtable p run "tmux set-buffer \"$(reattach-to-user-namespace pbpaste)\"; tmux paste-buffer"
bind-key -T gtable 1 select-layout even-horizontal
bind-key -T gtable 2 select-layout even-vertical
bind-key -T gtable 3 select-layout main-horizontal
bind-key -T gtable 4 select-layout main-vertical
bind-key -T gtable 5 select-layout tiled
bind-key -r -T gtable Up resize-pane -U 5
bind-key -r -T gtable Down resize-pane -D 5
bind-key -r -T gtable Left resize-pane -L 5
bind-key -r -T gtable Right resize-pane -R 5
bind-key -T gtable - delete-buffer
bind-key -T gtable m command-prompt "split-window 'exec man %%'"
bind-key -T gtable t split-window "exec htop"
bind-key C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind-key C-v run "tmux set-buffer \"$(reattach-to-user-namespace pbpaste)\"; tmux paste-buffer"
bind-key P paste-buffer
unbind-key '"'
unbind-key %
bind-key -T vi-copy y copy-selection
set-option -g @plugin 'tmux-plugins/tpm'
set-option -g @plugin 'tmux-plugins/tmux-sensible'
set-option -g @plugin 'tmux-plugins/tmux-resurrect'
set-option -g @plugin 'tmux-plugins/tmux-continuum'
set-option -g @plugin 'tmux-plugins/tmux-copycat'
set-option -g @plugin 'tmux-plugins/tmux-open'
set-option -g @plugin 'tmux-plugins/tmux-pain-control'
set-option -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set-option -g @plugin 'tmux-plugins/tmux-sessionist'
set-option -g @plugin 'tmux-plugins/tmux-sidebar'
set-option -g @plugin 'tmux-plugins/tmux-urlview'
set-option -g @plugin 'tmux-plugins/tmux-yank'
set-option -g @plugin 'tmux-plugins/tmux-logging'
set-option -g @plugin 'tmux-plugins/tmux-fpp'
set-option -g @plugin 'christoomey/vim-tmux-navigator'
set-option -g @plugin 'shuber/tmux-git'
set-option -g @plugin 'NHDaly/tmux-better-mouse-mode'
run-shell '~/.tmux/plugins/tpm/tpm'