Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin cannot find tmux-wormhole binary if installation directory is different than expected #2

Open
laurentlbm opened this issue Sep 9, 2023 · 0 comments

Comments

@laurentlbm
Copy link

Bug

If the plugin was installed anywhere other than in ~/.tmux/plugins/tmux-wormhole/, the bash script can't find the executable (source).

Context

The plugin assumes that it will be installed in ~/.tmux/plugins/. But since version 3.1, tmux config files can alternatively be stored in ~/.config/tmux/, and since 3.2, in $XDG_CONFIG_HOME/tmux/. Also, TPM can override the location of plugins.

Proposed solution

Look for the executable in all the possible locations:

  • ${TMUX_PLUGIN_MANAGER_PATH}/tmux-wormhole/tmux-wormhole
  • ${XDG_CONFIG_HOME}/tmux/plugins/tmux-wormhole/tmux-wormhole
  • ~/.config/tmux/plugins/tmux-wormhole/tmux-wormhole
  • ~/.tmux/plugins/tmux-wormhole/tmux-wormhole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant