tmux-plugins / tpm

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

XDG_CONFIG_HOME isn't being used by TPM #173

Closed zoqaeski closed 4 years ago

zoqaeski commented 4 years ago

Even though my configuration is stored in $XDG_CONFIG_HOME/tmux/tmux.conf, TPM still insists on installing plugins to ~/.tmux/. Shouldn't plugins also go in $XDG_CONFIG_HOME/tmux/?

ambroisie commented 4 years ago

I would also like to enable such behavior, maybe by detecting if the config file is in that location, or by setting a variable to the path that TPM should use instead.

ambroisie commented 4 years ago

Actually, I just RTFM, and according to here I can indeed set a variable.

I just tested it, no problem encountered.

bruno- commented 4 years ago

I'm also using TMUX_PLUGIN_MANAGER_PATH to set a tpm path.

PRs are welcome for a feature where tpm path is set to $XDG_CONFIG_HOME/tmux/ if tmux.conf is found at $XDG_CONFIG_HOME/tmux/tmux.conf

bruno- commented 4 years ago

This should be resolved with #177.