/
.tmux.conf
91 lines (68 loc) · 1.9 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
90
91
# tmux config by proft [http://proft.me]
# base
set -g set-titles on
set -g set-titles-string "#H > #W"
# automatically set window title
setw -g automatic-rename
set -g base-index 1
set -g history-limit 5000
# mouse scrolling
set -g mode-mouse on
#set window notifications
#setw -g monitor-activity on
#set -g visual-activity on
set -g display-time 2000
set -g status-interval 10
set -g status-left ''
set -g status-right '#[fg=green][#H]#[fg=cyan][#(cut -d " " -f 1-3 /proc/loadavg)]#[fg=yellow][%H:%M, %d-%m-%y]'
set -g status-right-length 45
# colors
set -g status-fg white
set -g status-bg default
set -g status-attr default
set-window-option -g window-status-fg cyan
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
setw -g window-status-alert-attr default
setw -g window-status-alert-fg yellow
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# keys
unbind C-b
set -g prefix C-a
set -g status-keys vi
setw -g mode-keys vi
# switch between tabs with alt+larrow && alt+rarrow
bind-key -n M-Right next
bind-key -n M-Left prev
# vim resize panel
bind < resize-pane -L 1
bind > resize-pane -R 1
# splitting
unbind %
bind h split-window -h
unbind '"'
bind v split-window -v
# last window
unbind l
bind a last-window
# reload config
bind r source-file ~/.tmux.conf
# kill current window
bind-key k confirm kill-window
# detach
bind-key -n C-j detach
# switch windows alt+number
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9