tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.95k stars 420 forks source link

Fix issue with automatic tpm install #186

Open bruno- opened 3 years ago

bruno- commented 3 years ago

Fixes #99

gpakosz commented 3 years ago

Here's what I did

$ git clone https://github.com/tmux-plugins/tpm --branch fix-automatic-tpm-install ~/.tmux/plugins/tpm
$ ~/.tmux/plugins/tpm/scripts/install_plugins.sh
unknown variable: TMUX_PLUGIN_MANAGER_PATH
FATAL: Tmux Plugin Manager not configured in tmux.con
Aborting.
gpakosz commented 3 years ago

When I launch that from within tmux it works though!

So my question is "should install_plugins.sh work when .tmux.conf defines plugins but tmux is not running?"

KentBrockman commented 1 year ago

@bruno- Tested this on two machines. This fix clears this error:

> TMUX_PLUGIN_MANAGER_PATH=~/.tmux/plugins ~/.tmux/plugins/tpm/bin/install_plugins
unknown variable: TMUX_PLUGIN_MANAGER_PATH
FATAL: Tmux Plugin Manager not configured in tmux.conf
Aborting.

This error was produced on v3.1.0