-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
89 lines (68 loc) · 2.25 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# ~/.tmux.conf
# start with window 1 and pane 1 (instead of 0)
set -g base-index 1
set -g pane-base-index 1
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
set -g default-terminal "tmux-256color"
set -g display-time 5000
set -g history-limit 50000
setw -g mode-keys vi
set -g mouse on
# horizontal split
unbind %
bind | split-window -h -c '#{pane_current_path}'
# vertical split
unbind '"'
bind - split-window -v -c '#{pane_current_path}'
# Create new window
bind c new-window -c '#{pane_current_path}'
bind C command-prompt -p "new window:" "new-window -n '%%'"
# vim-like pane movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# use C-h and C-l to cycle thru panes
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# emacs key bindings in tmux command prompt (prefix + :)
set -g status-keys emacs
# easier and faster switching between next/prev window
bind C-p previous-window
bind C-n next-window
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# messaging
set -g message-style fg=black,bg=yellow,bold
set -g message-command-style fg=blue,bg=black
# silence alerts
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
set -g bell-action none
# modes {
setw -g clock-mode-style 24
setw -g clock-mode-colour colour135
setw -g mode-style fg=colour196,bg=colour238,bold
# }
# panes {
set -g pane-border-style bg=colour235,fg=colour238
set -g pane-active-border bg=colour236,fg=colour51
# }
# statusbar {
set -g status on
set -g status-interval 5
set -g status-justify left
set -g status-position bottom
set -g status-style bg=colour234,fg=colour137,dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style fg=colour81,bg=colour238,bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-style fg=colour138,bg=colour235,none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-style fg=colour255,bg=colour1,bold
# }