mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-06-05 11:56:28 +08:00
Updated autocompletion
This commit is contained in:
parent
7157d36e41
commit
a23756475b
39
_nvm
39
_nvm
@ -5,24 +5,27 @@
|
|||||||
|
|
||||||
local -a _1st_arguments
|
local -a _1st_arguments
|
||||||
_1st_arguments=(
|
_1st_arguments=(
|
||||||
'help:show help'
|
'--help:Show help'
|
||||||
'--version:print out the latest released version of nvm'
|
'--version:Print out the installed version of nvm'
|
||||||
'install:download and install a version in <node|iojs|node version number>'
|
'install:Download and install a <version>, [-s] from source. Uses .nvmrc if available'
|
||||||
'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'
|
||||||
'run:run `node` on <version> with <args> as arguments. Uses .nvmrc if available'
|
'run:Run `node` on <version> with <args> as arguments. Uses .nvmrc if available'
|
||||||
'current:list installed versions'
|
'current:Display currently activated version of Node'
|
||||||
'ls:list installed versions or versions matching a given description'
|
'ls:List installed versions, matching a given <version> if provided'
|
||||||
'version:resolve the given description to a single local version'
|
'ls-remote:List remote versions available for install, matching a given <version> if provided'
|
||||||
'version-remote:resolve the given description to a single remote version'
|
'version:Resolve the given description to a single local version'
|
||||||
'ls-remote:list remote versions available for install'
|
'version-remote:Resolve the given description to a single remote version'
|
||||||
'deactivate:undo effects of `nvm` on current shell'
|
'deactivate:Undo effects of `nvm` on current shell'
|
||||||
'alias:show or set aliases'
|
'alias:Show all aliases beginning with <pattern>'
|
||||||
'unalias:deletes an alias'
|
'unalias:Deletes the alias named <name>'
|
||||||
'reinstall-packages:reinstall global `npm` packages contained in <version> to current version'
|
'install-latest-npm:Attempt to upgrade to the latest working `npm` on the current node version'
|
||||||
'unload:unload `nvm` from shell'
|
'reinstall-packages:Reinstall global `npm` packages contained in <version> to current version'
|
||||||
'which:display path to installed node version. Uses .nvmrc if available'
|
'unload:Unload `nvm` from shell'
|
||||||
|
'which:Display path to installed node version. Uses .nvmrc if available'
|
||||||
|
'upgrade:Upgrade to the latest release of `nvm`'
|
||||||
|
'revert:Revert back to the previously installed version'
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments -C '*:: :->subcmds' && return 0
|
_arguments -C '*:: :->subcmds' && return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user