-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
36 lines (31 loc) · 1.13 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
setw -g clock-mode-style 12
setw -g status-style bg=colour067,fg=black
set -g pane-active-border-style fg=colour067
set -g clock-mode-colour colour067
set -g message-style bg=colour178,fg=black
set -g renumber-windows on
set -g status-right "\"#H\" %l:%M %B %e %Y"
# Version-specific mouse commands
if-shell -b "[ $(tmux -V | cut -c 6) -lt 2 ] && [ $(tmux -V | cut -c 8) -lt 1 ]" \
"set -g mouse-select-pane on; set -g mode-mouse on; \
set -g mouse-resize-pane on; set -g mouse-select-window on"
if-shell -b "[ $(tmux -V | cut -c 6) -ge 3 ] || [ $(tmux -V | cut -c 8) -ge 1 ]" \
"set -g mouse on"
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Move between panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes with Ctrl + hjkl
bind C-h resize-pane -L 10
bind C-j resize-pane -D 10
bind C-k resize-pane -U 10
bind C-l resize-pane -R 10
# 'Minimizes' pane at index 2 by sending it to window 10. 'Maximizes' it again by opening it in a vertical split
unbind m
unbind M
if-shell -b '[[ $TMUX_VERSION -ge 2.1 ]]' \
"bind m break-pane -ds 2 -t 10"
bind M join-pane -vs 10 -t 1