-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
65 lines (48 loc) · 1.46 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
# Reduce delay when sending commands
set -s escape-time 1
# Start window and pane numbering at 1
set -g base-index 1
setw -g pane-base-index 1
# Add key to reload the config
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded config"
# Add alternative keys for splitting panes
bind | split-window -h
bind - split-window -v
# Use vim movement keys for navigating panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Add keys for resizing panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Easier and faster switching between next/prev window
bind C-p previous-window
bind C-n next-window
# Increase the repeat time
set -g repeat-time 750
# Use more colors
set -g default-terminal "screen-256color"
# Move pane to the top
set -g status-position top
# Enable focus events
set -g focus-events on
# Increase tmux message display duration
set -g display-time 1500
# Add visual notifications for activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# Refresh 'status-left' and 'status-right' more often, from every 15s to 5s
set -g status-interval 5
# Enable mouse for scrolling
set-option -g mouse on
# vi mode for working with the buffer
setw -g mode-keys vi
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark'
# Run tmux plugin manager
run '~/.config/tmux/plugins/tpm/tpm'