tpm icon indicating copy to clipboard operation
tpm copied to clipboard

Extraneous, empty ~/.tmux/plugins folder

Open ActionScripted opened this issue 5 years ago • 4 comments

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 avatar Mar 21 '19 20:03 ActionScripted

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.

ActionScripted avatar Mar 21 '19 20:03 ActionScripted

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

volo1st avatar Jun 16 '19 05:06 volo1st

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

$ echo $TMUX_PLUGIN_MANAGER_PATH
/Users/alichtman/.config/tmux/plugins/

alichtman avatar Mar 23 '20 12:03 alichtman

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

gaving avatar Aug 23 '20 20:08 gaving