-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
52 lines (40 loc) · 1.26 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
# Tpm 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-continuum'
# Install `tpm` if needed
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Settings
#set-option -g default-shell zsh
#/usr/bin/zsh
set -g escape-time 0
set -g base-index 1
set -g mouse on
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",*256col*:Tc"
# Tmux-resurrect
set -g @resurrect-processes 'tig'
# tmux-continuum
set -g @continuum-save-interval '1'
set -g @continuum-restore 'on'
# Tmux-vim-pilot
PILOT_MODE=winonly
PILOT_BOUNDARY=create
PILOT_ROOT=$HOME/.config/nvim/plugged/vim-tmux-pilot
source-file $PILOT_ROOT/pilot.tmux
# Status line
source-file ~/.tmuxline
# Bindings
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
#bind -n C-s new-session
bind-key -n C-n next-window
bind-key -n C-p previous-window
# Resize the current pane using Ctrl + arrow
bind -n C-Up resize-pane -U 5
bind -n C-Down resize-pane -D 5
bind -n C-Left resize-pane -L 5
bind -n C-Right resize-pane -R 5
# Activate the plugins
run -b "~/.tmux/plugins/tpm/tpm"