-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
52 lines (41 loc) · 1.54 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
# remap prefix from C-b to C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# keymap prefix-r for reloading our config file
bind-key r source-file ~/.tmux.conf
# start window numbering at 1
set -g base-index 1
# set to vi mode
setw -g mode-keys vi
# vim fixes
set-option -g escape-time 10
set-option -g focus-events on
set-option -g default-terminal "screen-256color"
# plugins
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'wfxr/tmux-fzf-url'
# lower the pane resizing so we can fine tune things
set-option -g @pane_resize "1"
# restore (neo)vim sessions
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-neovim 'session'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-processes 'nvim ncmpcpp vis'
# auto start tmux on boot, auto restore session on open and save every 5 mins
set -g @continuum-boot 'on'
set -g @continuum-restore 'on'
set -g @continuum-save-interval '5'
# source our `tmuxline.vim`'s snapshot if it's available
if-shell "test -f ~/.tmuxline-snapshot" "source ~/.tmuxline-snapshot"
# required to make tpm work on macos
set-environment -g PATH "/opt/homebrew/bin:/usr/local/bin:/bin:/usr/bin"
# must be at the bottom for the plugin manager to work
run -b '~/.tmux/plugins/tpm/tpm'