-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
42 lines (32 loc) · 985 Bytes
/
.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
# Change prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Change split commands to be more intuitive
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Change pane switching to be like vim
bind h select-pane -L
bind l select-pane -R
bind j select-pane -U
bind k select-pane -D
# Allow Ctrl-A Ctrl-D to detach
bind C-d detach
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# Remove escape delay
set -s escape-time 0
# Fix vim colors in tmux
set -g default-terminal screen-256color
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Resurrect options
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'