Open eric-g-97477 opened 2 years ago
I’m a bit confused. nvm doesn’t support fish, and load_nvm isn’t part of nvm itself (altho it might come from the readme)
Yes, I found load_nvm in the readme and assumed that if it was in the readme, it was supported -- at least to some extent.
I did trace the addition of /Users/eric.gorr/.pyenv/versions/3.10.4/bin
into the PATH to when load_nvm
executed:
nvm use default
I have no idea why that part of nvm would be doing that insert...seems weird.
Operating system and version:
nvm debug
output:nvm ls
output:How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
What steps did you perform?
My config.fish is:
What happened?
When I
echo $PATH
, I see:(some parts removed for simplicity)
The key thing to note is that load_nvm placed
/Users/eric.gorr/.pyenv/versions/3.10.4/bin
before pyenv's shims path. This prevents the proper operation of pyenv and it's ability to control what version of python is being used from working.What did you expect to happen?
I do not expect load_nvm to install a path related to python.
Is there anything in any of your profile files that modifies the
PATH
?Yes. I have the
pyenv init - | source
in my config.fish file.If I modify my config.fish file to be:
If I place load_nvm before the pyenv setup, then I do not see
/Users/eric.gorr/.pyenv/versions/3.10.4/bin
appear in $PATH.I can then use pyenv normally.
load_nvm should be able to detect that python is already in the path via the pyenv shims and not insert a path on its own.
Or, is there a reason why this cannot happen?
Or, am I doing something wrong?