forked from mynameisrufus/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
34 lines (25 loc) · 944 Bytes
/
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
# ~/.tmux.conf
set-window-option -g xterm-keys on
# set the state bar color using $TMUX_COLOR or dark pink by default
# to list colors: for i in {0..5}; do for j in {0..5}; do echo; for k in {0..5}; do c=$[36*$j+6*$k+$i+16]; printf "\x1b[38;5;%dm%d\t" $c $c; done; done; done
if-shell "[ -z $TMUX_COLOR ]" 'setw -g status-bg colour203' 'setw -g status-bg $TMUX_COLOR'
## Now a bunch of shortcuts
# Upper Vim move keys for pane resizing
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Choose session with #
bind '#' choose-session
# Reload tmux config
bind r source-file ~/.tmux.conf
# Shift pane synchronisation on/off
bind e set-window-option synchronize-panes