-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
146 lines (113 loc) · 4.02 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
# tmux uses the default shell
set-option -g default-shell $SHELL
# Use PREFIX-r to reload this file
bind r source-file ~/.tmux.conf \; display ".tmux.conf reloaded"
# Configure PREFIX to Ctrl-Space
unbind C-b
set -g prefix C-Space
#### COPY/PASTE Mode Config
# In iTerm2, must enable 'Applications in terminal may access clipboard'
# Enable vim-like keybindings in `tmux copy mode`
setw -g mode-keys vi
# Use 'v' to begin `visual selection` in `tmux copy mode`
bind-key -T copy-mode-vi 'v' send -X begin-selection
# Use 'y' to `yank` or copy visually selected text to macOS clipboard
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy"
#### Change defaults
## mouse-mode tmux 2.1
set -g mouse on
#setw -g mode-mouse on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#set -g mouse-select-window off
# re-number windows in status bar when one is closed
set -g renumber-windows on
# set default index to 1
set -g base-index 1
# set starting index for panes to 1 (instead of 0)
setw -g pane-base-index 1
## Use <PREFIX><PREFIX> to quickly cycle through panes within current window
unbind ^A
bind ^A select-pane -t :.+
# change default delay (to possibly incr vim response)
#cset -sg escape-time 1
## Use PREFIX-`\` and PREFIX-`-` to split active pane horizontally or vertically
bind \\ split-window -h
unbind '"'
bind - split-window -v
unbind %
# Use <PREFIX-h/j/k/l> (vim-like direction keys) to change panes in current window
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use <PREFIX-h/l> to move left/right one window (repeatable)
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Use vim-like direction keys to quickly resize active panes
# use PREFIX, then H,J,K,L to adjust size of active pane (repeatable)
bind -r H resize-pane -L 1
bind -r J resize-pane -D 1
bind -r K resize-pane -U 1
bind -r L resize-pane -R 1
# status-bar Config
# enable UTF-8 support in status bar
# set -g status-utf8 on
# set refresh interval for status bar
set -g status-interval 2
#### Colors
set -g default-terminal "screen-256color"
##### (Solarized 256) (comment out if tpm is installed and using tpm-solarized)
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-style default
# default window title colors
set-window-option -g window-status-style fg=colour244
set-window-option -g window-status-style bg=default
set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=colour166 #orange
set-window-option -g window-status-current-style bg=default
set-window-option -g window-status-current-style bright
# pane border
set-option -g pane-border-style fg=colour235 #base02
set-option -g pane-active-border-style fg=colour240 #base01
# message text
set-option -g message-style bg=colour235 #base02
set-option -g message-style fg=colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
### Tmux Plugin Manager (tpm)
#
## List of plugins
#set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-resurrect'
#
## optionally restore vim sessions
#set -g @resurrect-strategy-vim 'session'
#
#set -g @plugin 'tmux-plugins/tmux-continuum'
##set -g @continuum-restore 'on'
#
#set -g @plugin 'tmux-plugins/tmux-open'
#set -g @plugin 'tmux-plugins/tmux-sidebar'
#
## solarized color theme tmux configuration
#set -g @plugin 'seebi/tmux-colors-solarized'
#
## set -g @plugin 'tmux-plugins/tmux-sensible'
#
## tmux-scroll-copy-mode # restores pre-2.1 scroll-wheel/copy-mode behavior
#set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
#
## Other examples:
## set -g @plugin 'github_username/plugin_name'
## set -g @plugin '[email protected]/user/plugin'
## set -g @plugin '[email protected]/user/plugin'
#
## Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
#run '~/.tmux/plugins/tpm/tpm'