forked from meinside/rpi-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
69 lines (56 loc) · 1.72 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
# tmux conf file
#
# by [email protected]
# last update: 2017.10.25.
# colors
set-option -g default-terminal "screen-256color"
set -g status-fg black
set -g status-bg red
set -g status-attr default
set-window-option -g window-status-fg black
set-window-option -g window-status-bg red
set-window-option -g window-status-attr default
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg red
set-window-option -g window-status-current-attr default
set -g message-fg black
set -g message-bg red
set -g message-attr default
# enable vi-style navigation in copy mode
setw -g mode-keys vi
# escape time
set -sg escape-time 1
# window/pane index number starts from 1 (not 0)
set -g base-index 1
setw -g pane-base-index 1
# new pane opens in the last pane's directory
# ('-c' option is needed after tmux 1.9)
bind c new-window -c "#{pane_current_path}"
# key bindings for splitting windows
# ('-c' option is needed after tmux 1.9)
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# key bindings for traversing windows
bind -r n select-window -t :+
bind -r N select-window -t :-
bind space last-window
# key bindings for traversing panes
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# key bindings for resizing panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# char encoding
#-set -g status-utf8 on # raspbian jessie
setw -q -g utf8 on # raspbian stretch
# activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# terminal title
setw -g automatic-rename
set-option -g set-titles on
set-option -g set-titles-string 'tmux:#S/#W'