Add Tmux Plugin Manager

This commit is contained in:
Adam Goldsmith 2023-04-07 23:31:39 -04:00
parent 84b343a6f0
commit a2a8ff9a0d
2 changed files with 13 additions and 0 deletions

View File

@ -24,3 +24,15 @@ bind -r M-h resize-pane -L 5
bind -r M-j resize-pane -D 5
bind -r M-k resize-pane -U 5
bind -r M-l resize-pane -R 5
# plugins
set-option -g @plugin 'tmux-plugins/tpm'
# install/update tpm
if-shell "test ! -d " \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'"
run-shell '~/.config/tmux/plugins/tpm/bin/install_plugins'
run-shell '~/.config/tmux/plugins/tpm/bin/clean_plugins'
run-shell '~/.config/tmux/plugins/tpm/bin/update_plugins all'
# start tpm
run-shell '~/.config/tmux/plugins/tpm/tpm'

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.config/tmux/plugins/