-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
65 lines (52 loc) · 1.47 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
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Activity monitoring
setw -g monitor-activity on
# Highlight active window
set-window-option -g window-status-current-style bg=green
# Use vi shortcuts in copy mode
setw -g mode-keys vi
# use hjkl for switching panes
bind-key -r l select-pane -R
bind-key -r k select-pane -U
bind-key -r j select-pane -D
bind-key -r h select-pane -L
bind-key -r C-l resize-pane -R 5
bind-key -r C-k resize-pane -U 5
bind-key -r C-j resize-pane -D 5
bind-key -r C-h resize-pane -L 5
unbind-key Up
unbind-key Down
unbind-key Left
unbind-key Right
unbind-key M-Up
unbind-key M-Down
unbind-key M-Left
unbind-key M-Right
unbind-key C-Up
unbind-key C-Down
unbind-key C-Left
unbind-key C-Right
# use arrow keys for switching windows left and right
bind -n S-Left previous-window
bind -n S-Right next-window
unbind-key p
# new window gets inserted at the current location
bind-key c new-window -a
# scroll buffer size
set-option -g history-limit 20000
# enable more colors
set -g default-terminal "xterm-256color"
# enable clickable windows
set -g mouse on