-
-
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
nvm use #{version} --default
#13
Comments
Neat idea, but it's fairly hard to implement. How would I store the preference? |
I'm not entirely sure how this would work. The best bet is to discover what RVM is already doing. One possibility, though, is to store the value in a file somewhere within in |
That sounds good, I'll take a patch for it. I don't think my bash skills are up to the challenge. |
Hello @creationix, et al, I've started hacking on this and would appreciate a review, here's the compare So far I've just tried implementing the Try it out, just create a symlink like:
Then just add this modified version of nvm to your PATH:
Note: you will likely need to create the Thanks! |
This is implemented via the new alias command.
or if you're brave
|
Awesome, thanks for the update Tim! |
nvm use #{version} --default
should cause future shells for the same user automatically to be usingnode-#{version}
. When using the--default
option, the choice of version to use should be persistent between sessions.This would be similar to how
rvm use #{version} --default
works for managing Ruby versions.The text was updated successfully, but these errors were encountered: