-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
55 lines (48 loc) · 2.17 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
47
48
49
50
51
52
53
54
55
#
# Global Configuration
#
# misc options
set-option -g default-terminal "screen-256color"
set-option -g history-limit 10000
set-option -s escape-time 0
set-option -g renumber-windows on
set-window-option -g allow-rename off
set-window-option -g automatic-rename off
# color
set-option -g pane-border-style fg=colour235
set-option -g pane-active-border-style fg=colour240
set-option -g message-style fg=colour166,bg=colour235
set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166
set-option -g status-style fg=colour136,bg=colour236,default
set-option -g window-status-style fg=colour136,bg=colour238,none
set-option -g window-status-current-style fg=black,bg=colour23,none
# status
set-option -g status on
set-option -g status-right ""
set-option -g status-interval 2
set-option -g status-justify "left"
set-option -g status-left-length 40
set-option -g status-right-length 90
set-option -g status-left "#[fg=colour236,nounderscore]#[default,bold,nounderscore]#[bg=colour240] #S:#I.#P #[fg=colour240,bg=colour0] ❯ #[default]"
set-option -g status-keys vi
set-option -g display-time 2000
# tabs
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore]#[bg=colour240] #I #[fg=colour240,reverse]#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]"
set-window-option -g window-status-current-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore]#[bg=colour52] #I #[fg=colour240,reverse]#[default]#[bg=colour52]#[nounderscore] #[default]#[fg=colour231,bg=colour52]#W#[nounderscore] #[fg=colour236,reverse]"
# add prefix key of ctrl-a
set-option -g prefix2 C-a
bind C-a send-prefix -2
# reload settings
bind-key R \
source-file /etc/tmux.conf \;\
display "Reloaded configuration"
# handy binds
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key _ split-window -v -c "#{pane_current_path}"
bind-key | split-window -h -c "#{pane_current_path}"
bind-key "`" split-window "exec htop"
bind-key / command-prompt "split-window 'exec man %%'"
bind-key k kill-window
bind-key K kill-session