-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
37 lines (31 loc) · 1.18 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
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Enable mouse control (clickable windows, panes, resizable panes)
# http://stackoverflow.com/questions/35016458/how-to-write-if-statement-in-tmux-conf-to-set-different-options-for-different-t
if-shell '[ $(echo "$(tmux -V | cut -d" " -f2) >= 2.1" | bc) -eq 1 ]' \
'set -g mouse on' \
'set -g mode-mouse on; set -g mouse-resize-pane on; set -g mouse-select-pane on; set -g mouse-select-window on'
set-option -g status on
set-option -g status-interval 2
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/.rc/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/.rc/tmux-powerline/powerline.sh right)"
# Pane navigation (iTerm2 style)
bind-key -n M-A-Left select-pane -L
bind-key -n M-A-Right select-pane -R
bind-key -n M-A-Down select-pane -D
bind-key -n M-A-Up select-pane -U
# Pane navigation (vim style)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R