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
Print version on use
#12
base: master
Are you sure you want to change the base?
Conversation
It's common to put a |
Sure, I'll take a look at updating it. It shouldn't actually be required to |
For some reason, it doesn't work for me on my new computer. I had to edit the script to do |
Updated, uses Strange re: |
Whoops, |
Tried |
Updated to use a more accurate test. Unfortunately, the startup status isn't exposed to us except in the stack trace, so it has to do a No idea on the user paths, but I can confirm it's working for me. |
Ready to merge? |
FWIW, I removed the |
This outputs the version you've just switched to, which is handy when you've used an alias.
Native nvm also prints the npm version, I decided not to bother here just for brevity's sake, but it would only require adding
" (npm v" (npm --version 2>/dev/null) ")"
to it, after checking thatnpm
exists.