-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add nvm display to prompt. #23
Conversation
It's great to see you again @xolve 😄 I felt badly about delaying your original PR for the major version bump. I'll review these changes and test them on MacOS. Good point about the documentation, I wish wikis were better integrated into their main repository. |
😃 Had been busy with changes at work and had to take a break from OSS explorations. Well lets finish it this time. |
Thanks for the PR xolve. Your code was a really great starting point for the nvm item. Since I've rewritten most of the code, I'd like to discuss a few things about the original that you can improve on to create better fish scripts in the future 😄 In addition there were some style guide elements that were lacking. General things:
Details:
Style guide things:
Non-code stuff:
Other changes:
I still need to test this item on MacOS. As for automated tests, I'm planning to introduce command mocking soon that will make it much easier to write test for items like this, so we can ignore them for now. Can you review and briefly tests my changes and see if they work for you? I really appreciate your work, sorry for the wall of text 😂 |
I've tested the item on MacOS and made a few changes. I can handle the documentation since I added a new variable and there are a few oddities to discuss. Thanks @xolve 😄 |
Thanks for massive code clean up 😄 I do get the part where I missed to give option to set NVM_HOME. |
Display node version when using nvm.
Motivation and Context
People keep multiple node versions using nvm. This helps in better visibility of shell environment.
Screenshots (if appropriate)
How Has This Been Tested
Tested with local
nvm
.Checklist
Documentation has moved to wiki. Will update once PR is accepted.
- [ ] I have updated the tests accordingly.Unnecessary for nowWaiting for first review. Adding test cases not easy without running in a container.