tmux-plugins / tpm

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

TMUX_PLUGIN_MANAGER_PATH env var not set #293

Closed pauldthomson closed 1 week ago

pauldthomson commented 1 week ago

Using another plugin (github.com/catppuccin/tmux), I noticed the kube-tmux plugin wasn't working, due to the TMUX_PLUGIN_MANAGER_PATH env var not being set, and so the path to the kube-tmux executable was wrong: https://github.com/catppuccin/tmux/issues/301

Digging about as to why this value isn't being set even though it's set here: https://github.com/tmux-plugins/tpm/blob/99469c4a9b1ccf77fade25842dc7bafbc8ce9946/tpm#L34 led me to this: https://stackoverflow.com/questions/20701757/tmux-setting-environment-variables-for-sessions#comment114609472_49395839 which indeeds seems to be the case. I have managed to do a very ugly fix by just doing an export of the same env var below the line above, but I'm not sure if there's a better solution?

pauldthomson commented 1 week ago

Nvm, looks like my mistake and a different issue