[New] add nvm -v as an alias for nvm --version

Fixes #2200.
This commit is contained in:
Dena Burd
2020-07-27 10:26:35 -07:00
committed by Jordan Harband
parent 06c3bf6a8f
commit 55eafcd814

2
nvm.sh
View File

@@ -3580,7 +3580,7 @@ nvm() {
esac
NVM_VERSION_ONLY=true NVM_LTS="${NVM_LTS-}" nvm_remote_version "${PATTERN:-node}"
;;
"--version")
"--version" | "-v")
nvm_echo '0.35.3'
;;
"unload")