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

feature request: n - #496

Closed
ycmjason opened this issue Apr 25, 2018 · 3 comments
Closed

feature request: n - #496

ycmjason opened this issue Apr 25, 2018 · 3 comments

Comments

@ycmjason
Copy link

I am switching between two different version of node frequently and would be nice if there is some command like n - which switches to the previous node version.

Prior art:

  • cd -
  • git checkout -
    ...
@shadowspawn
Copy link
Collaborator

shadowspawn commented Jul 1, 2018

FYI: this has been discussed in past, and in fact matching functionality was removed at that time.
See #184

@shadowspawn
Copy link
Collaborator

Thanks for the prior art examples. I wasn't familiar with either of those.

Personally I like the concept in theory, but not sure how much I would use it in practice.

- is currently an alias for rm, which makes it challenging to change it to mean something else. And - does seem the most natural choice given the prior art.

On a related note and perhaps not well known, a shortcut that is currently available is using a partial version number. This works quite naturally for checking a past major versions for an issue. e.g.

n 8
# test
n 6
# test
n lts
# back to normal

@ycmjason
Copy link
Author

I just happened to worked with something where I need to switch between two versions very often. That's why I suggested this.

To be fair tho, I probably won't be using it that much too and doing n 8, n 6 isn't a lot harder. I will close this then if this is not something that will be considered! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants