-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
82 lines (65 loc) · 2.21 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
set -s escape-time 0
set -g default-terminal "screen-256color"
setw -g mode-keys vi
set -g set-titles on
set -g set-titles-string "#W"
bind | split-window -h
bind ? split-window -v
bind -n M-V split-window -h
bind -n M-H split-window -v
bind -n M-c copy-mode
unbind '"'
unbind %
unbind -n s
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
bind -n M-J resize-pane -D 1
bind -n M-K resize-pane -U 1
bind -n M-a previous-window
bind -n M-d next-window
bind -n M-s next-window
bind -n M-n next-window
bind -T root F12 \
set prefix None \;\
set key-table off \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\
bind -T off F12 \
set -u prefix \;\
set -u key-table \;\
set -u status-style \;\
set -u window-status-current-style \;\
set -u window-status-current-format \;\
refresh-client -S
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
set-option -g status-interval 1
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# Status bar colors.
set-window-option -g status-style fg=default,bg=default
# Window list colors.
set-window-option -g window-status-style fg=black,bg=blue,none
set-window-option -g window-status-current-style fg=black,bold,bg=green
set-window-option -g window-status-activity-style fg=white,bg=darkcyan,none
# Pane divider colors.
set-option -g pane-border-style fg=yellow,bg=default
set-option -g pane-active-border-style fg=red,bold,bg=default,bright
# Set left and right sections.
set-option -g status-left-length 20
set-option -g status-right-length 60
set-option -g status-left "#[fg=black,bg=green]"
set-option -g status-right "#[fg=black,bg=green] Session: #S | #(whoami)@#H | %a %b %d, %Y // %H:%M:%S"
# Set format of items in window list.
setw -g window-status-format " #I:#W#F "
setw -g window-status-current-format " #I:#W#F "
# Set alignment of windows list.
set-option -g status-justify left
# Identify activity in non-current windows.
set-window-option -g monitor-activity on
set-option -g visual-activity off