-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
52 lines (39 loc) · 1.03 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
set -g default-terminal "screen-256color"
setw -g mode-keys vi
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# reduce escape key response delay
set -s escape-time 0
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
# bind | split-window -h
# bind - split-window -v
# unbind '"'
# unbind '%'
# vim-like pane resizing
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# enable mouse mode
set -g mouse on
# toggle sync pane
bind S setw synchronize-panes
setw -g aggressive-resize on
# activity monitoring
set -g status on
setw -g monitor-activity on
set -g visual-activity on
setw -g window-status-activity-bg red
setw -g window-status-activity-fg yellow
# turn off auto rename the window name to last command
set-option -g allow-rename off