-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
25 lines (21 loc) · 1.08 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
# Enable 256 colors.
set -g default-terminal "screen-256color"
# Enable mouse mode (tmux >= 2.1).
set -g mouse on
# Clock color (key: t).
set-window-option -g clock-mode-colour colour64 #green
# Start window numbering at 1 to match keyboard.
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Smart pane switching with awareness of Vim splits.
# See: /~https://github.com/christoomey/vim-tmux-navigator.
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' \
| grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' \
| grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' \
| grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' \
| grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' \
| grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"