The instructions for automatic plugin installation only install tpm but not any other plugins.
The issue is that the tpm/bin/install_plugins script depends on the TMUX_PLUGIN_MANAGER_PATH being set, but that isn't done until tpm/tpm is run. But tpm/tpm has to be run after plugins are installed to correctly source them. Calling it both before and after the plugin install script seems unnecessary.
Perhaps the install script could be modified to setup the path env variable if missing?
For now a workaround is to set TMUX_PLUGIN_MANAGER_PATH manually before the automatic installation code.
setenv -g TMUX_PLUGIN_MANAGER_PATH '$HOME/.tmux/plugins/'
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && \
~/.tmux/plugins/tpm/bin/install_plugins'"
run '~/.tmux/plugins/tpm/tpm'
The instructions for automatic plugin installation only install tpm but not any other plugins.
The issue is that the
tpm/bin/install_pluginsscript depends on theTMUX_PLUGIN_MANAGER_PATHbeing set, but that isn't done untiltpm/tpmis run. Buttpm/tpmhas to be run after plugins are installed to correctly source them. Calling it both before and after the plugin install script seems unnecessary.Perhaps the install script could be modified to setup the path env variable if missing?
For now a workaround is to set
TMUX_PLUGIN_MANAGER_PATHmanually before the automatic installation code.