This repository has been archived by the owner on Feb 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.tmux.conf
71 lines (55 loc) · 1.73 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
# tmux conf file
#
# by [email protected]
# last update: 2019.05.10.
# colors
set-option -g default-terminal "screen-256color"
set -g status-style fg=black,bg=red
set-window-option -g window-status-style fg=black,bg=red
set-window-option -g window-status-current-style fg=white,bg=red,bold
set -g message-style fg=black,bg=red
set -g pane-active-border-style fg=red
# status
set -g status-right '#[fg=white]#h#[fg=black] %b/%d (%a) %R '
# 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
setw -q -g utf8 on
# 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'
# XXX - not to rename window automatically
setw -g allow-rename off
# Use a to toggle synchronize panes
bind a set-window-option synchronize-panes \;\
display 'Toggled panes synchronization'