-
Notifications
You must be signed in to change notification settings - Fork 13
/
tmux.conf
57 lines (41 loc) · 1.34 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
#-------------------------------------------------
# bindings
#-------------------------------------------------
# emulate GNU-screen bindings
unbind C-b
set -g prefix C-a
bind a send-prefix
bind C-a last-window
# page up/down move between windows
bind -n PPage previous-window
bind -n NPage next-window
bind Tab select-pane -t :.+
# set session's "start-directory"
bind _ attach-session -t . -c '#{pane_current_path}'
# toggle synchronize-panes
bind C-x setw synchronize-panes
# mouse
set -g mouse off
bind M set -g mouse
#-------------------------------------------------
# other config
#-------------------------------------------------
# https://github.com/tmux/tmux/wiki
# fix colors
set -a terminal-features 'xterm-256color:RGB'
set -g history-limit 5000
# just send ESC
set -g escape-time 0
set -g bell-action none
set -g display-time 2000
# automatic rename-window
set-hook -g after-new-session 'rename-window _'
set-hook -g after-new-window 'rename-window _'
# status-line look-and-feel
set -g status-fg white
set -g status-bg black
set -g status-left ''
set -g status-right ''
setw -g window-status-current-style fg=green
setw -g window-status-current-format '#{?pane_synchronized,#[bg=red],}#{?window_zoomed_flag,#[bg=blue],}#I:#W'
setw -g window-status-format '#{?pane_synchronized,#[bg=red],}#{?window_zoomed_flag,#[bg=blue],}#I:#W'