-
Notifications
You must be signed in to change notification settings - Fork 788
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
fix: Introduce ASDF_FORCE_PREPEND
variable on POSIX entrypoint
#1560
Conversation
This variable forces the prepending of the asdf directories to the PATH variable. It does this by removing existing asdf entries in PATH, including an optimization for Bash and Zsh shells.
I'm starting to think that this should be the default on macOS, so users don't end up having to set environment variables when they update. Thoughts? |
That's probably best. I would like to see the code you would suggest for that. |
I changed things from relying on the existence of a set variable, to the value of the variable. Now there is documentation which explains the behavior |
Just tested these changes and confirmed they fixed my issue with the path inside tmux sessions. |
@jthegedus are you good with this now? |
Merge so I can easily get this fix on my machines. @jthegedus happy to revert this change if you find issues with what is here. |
Yeah, this looks like a good soln for this problem 💯 |
Summary
This variable forces the prepending of the asdf directories to the PATH variable. It does this by removing existing asdf entries in PATH, including an optimization for Bash and Zsh shells.
Fixes #1550