-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
44 lines (33 loc) · 1.79 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
set -g history-limit 20000
set -g default-terminal "screen-256color"
set -g base-index 1
set -g pane-base-index 1
# Set responsive escape time to avoid delays in tmux and neovim
set-option -sg escape-time 10
bind-key c new-window -c "#{pane_current_path}"
bind-key '"' split-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
if-shell "[[ $(tmux -V | cut -d' ' -f2) > 1.9 || $(tmux -V | cut -d' ' -f2) == 1.9 ]]" \
"set-option -g focus-events on"
# Set mouse control settings for >= tmux v2.1
if-shell "[[ $(tmux -V | cut -d' ' -f2) > 2.1 || $(tmux -V | cut -d' ' -f2) == 2.1 ]]" \
"set -g mouse on"
# Set mouse control settings for < tmux v2.1
if-shell "[[ $(tmux -V | cut -d' ' -f2) < 2.1 ]]" \
"set -g mode-mouse on; set -g mouse-select-pane on; set -g mouse-select-window on"
# Set status bar settings
set-option -g renumber-windows on
set-option -g status-bg black
set-option -g status-fg white
# Style status bar settings for >= tmux 2.9
if-shell "[[ $(tmux -V | cut -d' ' -f2) > 2.9 || $(tmux -V | cut -d' ' f2) == 2.9 ]]" \
"set-window-option -g window-status-style fg=white; set-window-option -g window-status-style bg=black"
# Style status bar settings for < tmux 2.9
if-shell "[[ $(tmux -V | cut -d' ' -f2) < 2.9 ]]" \
"set-window-option -g window-status-fg white; set-window-option -g window-status-bg black"
# Active window title colours for >= tmux 2.9
if-shell "[[ $(tmux -V | cut -d' ' -f2) > 2.9 || $(tmux -V | cut -d' ' f2) == 2.9 ]]" \
"set-window-option -g window-status-current-style fg=green; set-window-option -g window-status-current-style bright"
# Active window title colours for < tmux 2.9
if-shell "[[ $(tmux -V | cut -d' ' -f2) < 2.9 ]]" \
"set-window-option -g window-status-current-fg green; set-window-option -g window-status-current-attr bright"