Updated _nvm

This commit is contained in:
Vyacheslav Shcherbinin 2023-10-17 13:44:15 +07:00
parent 59e7ac2245
commit 5eb1018459

3
_nvm
View File

@ -8,6 +8,7 @@ _1st_arguments=(
'help:show help' 'help:show help'
'--version:print out the latest released version of nvm' '--version:print out the latest released version of nvm'
'install:download and install a version in <node|iojs|node version number>' 'install:download and install a version in <node|iojs|node version number>'
'install-latest-npm:download and install the latest npm version'
'uninstall:uninstall a version' 'uninstall:uninstall a version'
'use:modify PATH to use <version>. Uses .nvmrc if available' 'use:modify PATH to use <version>. Uses .nvmrc if available'
'exec:run <command> on <version>. Uses .nvmrc if available' 'exec:run <command> on <version>. Uses .nvmrc if available'
@ -30,4 +31,4 @@ _arguments -C '*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then if (( CURRENT == 1 )); then
_describe -t commands "nvm subcommand" _1st_arguments _describe -t commands "nvm subcommand" _1st_arguments
return return
fi fi