-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
nvm fix to work for other shells #430
Comments
Were there any thoughts on this? I'd like to be able to use other shells easily with this. |
fish is the only shell that it doesn't work with, and it's so vastly different from other POSIX-compliant shells that there's not going to be a fast solution. You can look into https://github.com/Alex7Kom/nvm-fish for the time being as well. |
Yes, but wouldn't my solution work for all shells? since it uses a bash wrapper? And isn't that a better solution as it's generic? |
Your approach would re-source I'd be OK with |
OK, will do. One of the issues I had was actually that nvm tended to pollute my path in bash. I'll have a look at implementing it |
See PR here: #447 I wasn't sure what to do for a test though. |
I'm using fish-shell and I'm unable to use nvm as it stands.
However, with a wrapper file
cat nvm
:I can easily use it. However, it does not set the PATH.
Setting the default node could easily be accomplished if a
.nvm/default
pointed to the default version. For example,.nvm/default -> v0.10.28/
I suggest that
nvm alias default 0.10.28
create such a link as then I could easily alter my path to include.nvm/default/bin
The text was updated successfully, but these errors were encountered: