tpm icon indicating copy to clipboard operation
tpm copied to clipboard

tpm bootstrap missing instruction?

Open erikw opened this issue 2 years ago • 0 comments

Hello, I tried to follow the bootstrap guide at https://github.com/tmux-plugins/tpm/blob/master/docs/automatic_tpm_installation.md

However when the tpm/bin/install_plugins is executed during bootstrap it fails with:

  unknown variable: TMUX_PLUGIN_MANAGER_PATH
  FATAL: Tmux Plugin Manager not configured in tmux.conf
  Aborting.

I found the original issue at https://github.com/tmux-plugins/tpm/issues/39#issuecomment-120437818 which mentions that one should set the TMUX_PLUGIN_MANAGER_PATH env var for the bootstrap to work. After I added this it worked!

set-environment -g TMUX_PLUGIN_MANAGER_PATH "~/.tmux.d/plugins/"
if-shell "test ! -d ~/.tmux.d/plugins/tpm" \
   "run-shell 'git clone https://github.com/tmux-plugins/tpm ~/.tmux.d/plugins/tpm && ~/.tmux.d/plugins/tpm/bin/install_plugins'"

run-shell '~/.tmux.d/plugins/tpm/tpm'

erikw avatar Mar 31 '23 20:03 erikw