Skip to content
New issue

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

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

Already on GitHub? # to your account

Cannot set variables with a name whose prefix is plugin #281

Open
ShelpAm opened this issue Apr 8, 2024 · 2 comments
Open

Cannot set variables with a name whose prefix is plugin #281

ShelpAm opened this issue Apr 8, 2024 · 2 comments

Comments

@ShelpAm
Copy link

ShelpAm commented Apr 8, 2024

This breaks something I don't know. :(

Part of my configuration file:

set -g @plugins_dir '~/.local/share/tmux/plugins'

set-environment -g TMUX_PLUGIN_MANAGER_PATH "#{@plugins_dir}"

set -g @plugin 'tmux-plugins/tpm'

run "#{@plugins_dir}/tpm/tpm"

which produces Installing "plugin" "plugin" download fail.

@RossBarnie
Copy link

Can you try calling the plugins_dir something else? I suspect there's a bit of a regex problem here in that TPM will look not only at what's in the plugin variable but also just regex-match set -g @plugin entries, which your plugins_dir will conflict with.

@ShelpAm
Copy link
Author

ShelpAm commented Aug 21, 2024

Can you try calling the plugins_dir something else? I suspect there's a bit of a regex problem here in that TPM will look not only at what's in the plugin variable but also just regex-match set -g @plugin entries, which your plugins_dir will conflict with.

It seems you are right. Variables with prefix 'plugin' break something.

After changing the name without the prefix 'plugin', it worked. Like this:

set -g @other_prefix_plugins_dir '/tmp/'

@ShelpAm ShelpAm changed the title Fix: cannot set variables with a name whose prefix is plugin Cannot set variables with a name whose prefix is plugin Jan 18, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants