-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Sourcing NVM does not work in ZSH #14
Comments
Hmm, doesn't work for me. I get "," for $NVM_DIR which isn't going to work. |
You're right! Hmm... there has to be some ZSH equiv... I'll keep looking. |
By replacing the line with the following, nvm worked well with both shells, at least in my env. (I'm not sure if it's the best solution, though) : export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd) Anyway, please note that |
Your solution worked for me yibe, I made a pull request to creationix to see if it will work for his BASH. Hopefully! |
Pull accepted :) |
A very simple fix will get this to work in both BASH and ZSH in nvm.sh export NVM_DIR.
Use
Instead of
For me it worked in both shells. Once I switched that everything else seems to work.
The text was updated successfully, but these errors were encountered: