-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_tmux.conf
49 lines (37 loc) · 1.47 KB
/
dot_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
47
48
49
set -g default-terminal screen-256color
set -g mouse on
# Vi bindings
set-option -g status-keys vi
set-window-option -g mode-keys vi
# Set up the main-horizontal and main-vertical layouts
set -g main-pane-width 62%
set -g main-pane-height 60%
# More intuitive window splitting and navigation
bind-key - split-window -v
bind-key | split-window -h
bind-key C-n next-window
bind-key C-p previous-window
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# Grab a pane from elsewhere and split the current window - horizontally / vertically
bind-key z command-prompt -p "join pane from:" "join-pane -s '%%' -h"
bind-key Z command-prompt -p "join pane from:" "join-pane -s '%%' -v"
# Reload config
bind-key R source ~/.tmux.conf \; display-message "config reloaded"
# Terminal titles
set -g set-titles on
set -g set-titles-string "tmux/#T"
set -g escape-time 10
# Needed to keep Neovim happy
set -g focus-events on
set -g status-style 'bg=colour237 fg=colour252'
setw -g window-status-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
setw -g window-status-current-format '#[fg=colour231,bg=colour239] #I#[fg=colour249]:#[fg=colour220]#W#[fg=colour249]#F '
set -g status-left ""
set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}#[fg=colour220,bg=colour239] #{=21:pane_title} #[fg=colour231,bg=colour237] #(hostname) "