Closed Qquanwei closed 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.
support use alias , as same as
(nvm-use "default")