-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
49 lines (41 loc) · 1.37 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
# use 256 colors
set -g default-terminal "xterm-256color"
# remap prefix
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# vim-like pane navigation
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
#bind -n C-w kill-pane
#quickly edit & source .tmux.conf
bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
bind-key M split-window -h "vim ~/.tmux.conf"
#splitting more intuitively
bind-key \ split-window -h
bind-key - split-window -v
#add mouse support for scrollback
set -g mouse off
#plugins
set -g @plugin 'tmux-plugins/tpm'
####tmux-sensible; basic foundation for tmux settings#
set -g @plugin 'tmux-plugins/tmux-s'
####tmux-resurrect###
#save and restore tmux sessions
set -g @plugin 'tmux-plugins/tmux-resurrect'
#restore vim and nvim sessions (works best with tpope/vim-obsession
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
####tmux-continuum###
set -g @plugin 'tmux-plugins/tmux-continuum'
#automatic restore
set -g @continuum-restore 'on'
####tmux prefix-highlight
set -g @plugins 'tmux-plugins/tmux-prefix-highlight'
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H: %M'
####tmux sidebar directory tree###
set -g @plugin 'tmux-plugins/tmux-side'
#keep this at the bottom of .tmux.conf-- enables plugins
run -b '~/.tmux/plugins/tpm/tpm'