-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
65 lines (47 loc) · 1.23 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
set-option -g history-limit 50000
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
## Status line
set -g status-bg black
set -g status-fg white
set -g status-left-length 50
set -g status-left "#[fg=blue](#[fg=white]#H#[fg=blue]) "
set -g status-right-length 50
set -g status-right "#[fg=blue] (#[fg=magenta]%H:%M#[fg=blue])"
set -g status-justify centre
# set-window-option -g window-status-current-attr bold
# set-window-option -g window-status-current-fg red
set-window-option -g window-status-current-style fg=red,bold
## Keys
# Screen behaviour
set -g prefix C-a
unbind c
bind c new-window
bind C-c new-window
unbind &
bind k confirm-before kill-window
bind -n C-k clear-history
unbind l
bind C-a last-window
unbind C-b
bind a send-prefix
unbind n
bind n next-window
bind C-n next-window
unbind p
bind p previous-window
bind C-p previous-window
unbind d
bind d detach
bind C-d detach
set-option escape-time 0
# Other useful stuff
unbind %
bind h split-window -v
bind C-h split-window -v
unbind "'"
bind v split-window -h
bind C-v split-window -h
bind / command-prompt "split-window 'exec man %%'"