-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
82 lines (66 loc) · 1.89 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
# Change prefix from Ctrl-b to Ctrl-a
set -g prefix C-a
unbind C-b
# Reload tmux config with Ctrl-a r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Enable sending Ctrl-a to other applications
bind C-a send-prefix
# Use vi bindings
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
# Decrease default delay
set -s escape-time 1
# Change window/pane index to 1
set -g base-index 1
setw -g pane-base-index 1
# Use pipe and dash to split windows vertically and horizontally
bind | split-window -h
bind - split-window -v
# Use vi directions to jump between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use capital vi directions to resize panes
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
# Set color of active pane border
set -g pane-border-fg white
set -g pane-border-bg white
set -g pane-active-border-fg cyan
set -g pane-active-border-bg cyan
# Display session/window/pane in left status bar
set -g status-left-length 40
set -g status-left "session: #S || window: #I || pane: #P"
# Center window list
set -g status-justify centre
# Set status bar colors
set -g status-fg cyan
set -g status-bg blue
setw -g window-status-fg white
setw -g window-status-bg cyan
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# Update status bar every minute
set -g status-interval 60
# Make messages stand out
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# Identify activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# Enable mouse controls
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on