-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
46 lines (38 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
37
38
39
40
41
42
43
44
45
46
# Vim like bindings
set-window-option -g mode-keys vi
set-window-option -g status-keys vi
# move around 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 like Vim
bind < resize-pane -L 2
bind > resize-pane -R 2
bind - resize-pane -D 2
bind + resize-pane -U 2
# split window bindings
bind | split-window -h
bind - split-window -v
# sane pane indexing
set -g base-index 1
setw -g pane-base-index 1
# mouse support
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# terminal color
set -g default-terminal "screen-256color"
# tmux powerline
set-option -g status on
set-option -g status-interval 2
set-option -g status-utf8 on
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 "#(~/.tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/.tmux-powerline/powerline.sh right)"
# Toggle left and right status bars
bind C-[ run '~/.tmux-powerline/mute_powerline.sh left'
bind C-] run '~/.tmux-powerline/mute_powerline.sh right'