Skip to content
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 - to quickly switch to last active version #1374

Open
trippingtarballs opened this issue Dec 31, 2016 · 3 comments
Open

nvm use - to quickly switch to last active version #1374

trippingtarballs opened this issue Dec 31, 2016 · 3 comments
Labels
feature requests I want a new feature in nvm!

Comments

@trippingtarballs
Copy link

This would be to mimic the behaviour of the - in either; cd - or git checkout -.

I'm happy to attempt a PR if this shortcut is a feature worth pursuing.

@ljharb
Copy link
Member

ljharb commented Dec 31, 2016

This would have to track the previous node version in an environment variable, since it would vary per shell session - I'm not sure switching versions happens often enough that you won't be able to recall which version you want, such that it's worth an extra env var. with git and cd, branch names and directory paths are far more difficult to remember.

@ljharb ljharb added the feature requests I want a new feature in nvm! label Dec 31, 2016
@trippingtarballs
Copy link
Author

Fair enough. Happy for you to close this one. If there is more demand then we can revisit.

@ljharb
Copy link
Member

ljharb commented Jan 7, 2017

Might as well leave it open either way :-)

I'm not entirely opposed - it's a great feature for cd and git - just not sure yet how it could practically work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature requests I want a new feature in nvm!
Projects
None yet
Development

No branches or pull requests

2 participants