tmux: Improve initial plugin setup

This commit is contained in:
Adam Goldsmith 2023-04-09 02:22:06 -04:00
parent 1e941f215d
commit b6f33fc3c3

View File

@ -31,10 +31,12 @@ set-option -g @plugin 'noscript/tmux-mighty-scroll'
set-option -g @mighty-scroll-by-line 'man less pager fzf emacs emacsclient'
# install/update tpm
if-shell "test ! -d ~/.config/tmux/plugins/tpm" \
"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'
if-shell "test ! -d ~/.config/tmux/plugins/tpm" {
run-shell 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'
}
# start tpm
run-shell '~/.config/tmux/plugins/tpm/tpm'
# install and update plugins
run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/install_plugins'
run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/clean_plugins'
run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/update_plugins all'