-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
48 lines (36 loc) · 1.29 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
set -g default-command /opt/homebrew/bin/fish
set-option -g default-shell /opt/homebrew/bin/fish
unbind C-b
set -g prefix C-n
set-option -sa terminal-overrides ',xterm-256color:RGB'
set-option -g default-terminal "screen-256color"
set-option -sg escape-time 10
set-option -g focus-events on
# utf8 is on
#set -g utf8 on
#set -g status-utf8 on
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# easier and faster switching between next/prev window
bind C-p previous-window
bind C-n next-window
# switch panes using Alt-arrow without prefix
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @resurrect-strategy-nvim 'session' # resurrect nvim sessions (if Session.vim is present)
set -g @resurrect-capture-pane-contents 'on' #pane contents
# Initialize TMUX plugin manager (keep at bottom)
run -b '~/.tmux/plugins/tpm/tpm'