tmux-plugins / tpm

Tmux Plugin Manager
MIT License
12.32k stars 433 forks source link

Extraneous, empty ~/.tmux/plugins folder #153

Open ActionScripted opened 5 years ago

ActionScripted commented 5 years ago

Have a non-standard tmux execution to allow for XDG-friendly paths and everything works perfectly. The only issue I've had is that when I update tmux plugins via tpm I get empty folders at ~/.tmux/plugins.

Relevant shell information:

$ env | grep XDG
XDG_DATA_HOME=$HOME/.local/share
XDG_CONFIG_HOME=$HOME/.config
XDG_CACHE_HOME=$HOME/.cache

$ alias
# ...snip
tmux='tmux -f "$XDG_CONFIG_HOME"/tmux/tmux.conf'
# ...snip

Example shell session:

$ ls -al ~/.tmux
ls: cannot access /home/(my user name)/.tmux: No such file or directory

$ tmux
<leader> + U, "all" <enter>

$ tree -a ~/.tmux
/home/(my user name)/.tmux
└── plugins

Not a huge deal, just would love to find a way around this empty directory structure.

ActionScripted commented 5 years ago

Also, since this doesn't get said enough in issues: thanks so much for TPM. Love it and really appreciate the work that goes in to it.

volo1st commented 5 years ago

Also, seems like it won't load plugins from $XDG_CONFIG_HOME/tmux/plugins? If you do a prefix + I and same plugins are installed to ~/.tmux/plugins

alichtman commented 4 years ago

Make sure to set $TMUX_PLUGIN_MANAGER_PATH. This fixed the issue for me.

$ echo $TMUX_PLUGIN_MANAGER_PATH
/Users/alichtman/.config/tmux/plugins/
gaving commented 4 years ago

Thanks @alichtman - limping along trying to move to XDG but unfortunately stuff like this is required.

FWIW tmux supports XDG spec for it's config at least in 3.1:- https://github.com/tmux/tmux/commit/15d7e564ddab575dd3ac803989cc99ac13b57198