rejeep / nvm.el

Manage Node versions within Emacs
39 stars 25 forks source link

feat: support nvm alias refer #11

Closed Qquanwei closed 6 years ago

Qquanwei commented 7 years ago

support use alias , as same as (nvm-use "default")

wyuenho commented 6 years ago

This PR misses a couple of valid aliases not found in the alias directory. node, stable, iojs are all valid. In addition, default and system are also valid.

The problem with this PR is, you simply cannot rely on the alias directory to give you all the aliases. On a fresh setup, the alias directory might not even exist. You at the very least have to hard code all of the above special aliases somewhere first.

@Qquanwei can you update your PR? You might want to adjust the regex match here in addition to what you have.