tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.68k stars 415 forks source link

Fix #215, use XDG_DATA_HOME #265

Open Freed-Wu opened 9 months ago

TheSast commented 7 months ago

The whole function loses it's purpose, thus you can move line 31 and 34 to set_tpm_path and delete set_default_tpm_path and it's associated comments and call.

baodrate commented 7 months ago

It could probably also migrate the existing directory for user-friendliness. So if $XDG_CONFIG_HOME/tmux exists, move it to $XDG_DATA_HOME/tmux. Making the user clone all the plugins might be jarring (and leaves the existing directory around for them to clean up)

TheSast commented 7 months ago

I agree. If the TMUX_PLUGIN_MANAGER_PATH is unset and the plugin folder is located at the previous default location, it should be handled.