aboutsummaryrefslogtreecommitdiffstats
path: root/src/_nvm
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2025-09-01 14:24:21 +0900
committerShohei YOSHIDA <syohex@gmail.com>2025-09-01 14:24:21 +0900
commit3c89229e0efe3256ceaf2a3a866e748b711fa1b7 (patch)
tree99e59245454686de330782669224ef42bdd22946 /src/_nvm
parentMerge pull request #1149 from zsh-users/update_vnstat (diff)
downloadzsh-completions-3c89229e0efe3256ceaf2a3a866e748b711fa1b7.tar
zsh-completions-3c89229e0efe3256ceaf2a3a866e748b711fa1b7.tar.gz
zsh-completions-3c89229e0efe3256ceaf2a3a866e748b711fa1b7.tar.bz2
zsh-completions-3c89229e0efe3256ceaf2a3a866e748b711fa1b7.tar.lz
zsh-completions-3c89229e0efe3256ceaf2a3a866e748b711fa1b7.tar.xz
zsh-completions-3c89229e0efe3256ceaf2a3a866e748b711fa1b7.tar.zst
zsh-completions-3c89229e0efe3256ceaf2a3a866e748b711fa1b7.zip
Update nvm completion to version 0.40.3
Diffstat (limited to 'src/_nvm')
-rw-r--r--src/_nvm42
1 files changed, 22 insertions, 20 deletions
diff --git a/src/_nvm b/src/_nvm
index 4c820d2..3d32fa6 100644
--- a/src/_nvm
+++ b/src/_nvm
@@ -28,7 +28,7 @@
# Description
# -----------
#
-# Completion script for nvm v0.39.2 (https://github.com/nvm-sh/nvm).
+# Completion script for nvm v0.40.3 (https://github.com/nvm-sh/nvm).
#
# ------------------------------------------------------------------------------
# Authors
@@ -67,87 +67,89 @@ __nvm() {
'--no-progress[Disable the progress bar on any downloads]' \
'--alias=[After installing, set the alias specified to the version specified]' \
'--default[After installing, set default alias to the version specified]' \
+ '--save[After installing, write the specified version to .nvmrc]' \
'1::version:__nvm_versions' \
&& ret=0
;;
(uninstall)
- _arguments -C \
- '--lts=[When installing, only select from LTS versions]::lts_name' \
+ _arguments \
+ '--lts=-[When installing, only select from LTS versions]::lts_name' \
'1: :__nvm_installed_versions' \
&& ret=0
;;
(use)
- _arguments -C \
+ _arguments \
'--silent[Silences stdout/stderr output]' \
- '--lts=[When installing, only select from LTS versions]::lts_name' \
+ '--lts=-[When installing, only select from LTS versions]::lts_name' \
'1: :__nvm_installed_versions' \
'*: :_normal' \
&& ret=0
;;
(exec)
- _arguments -C \
+ _arguments \
'--silent[Silences stdout/stderr output]' \
- '--lts=[When installing, only select from LTS versions]::lts_name' \
+ '--lts=-[When installing, only select from LTS versions]::lts_name' \
'1: :__nvm_installed_versions' \
'*: :_normal' \
&& ret=0
;;
(run)
- _arguments -C \
+ _arguments \
'--silent[Silences stdout/stderr output]' \
- '--lts=[When installing, only select from LTS versions]::lts_name' \
+ '--lts=-[When installing, only select from LTS versions]::lts_name' \
'1: :__nvm_installed_versions' \
'*: :_normal' \
&& ret=0
;;
(ls)
- _arguments -C \
+ _arguments \
'--no-colors[Suppress colored output]' \
'--no-alias[Suppress `nvm alias` output]' \
&& ret=0
;;
(ls-remote)
- _arguments -C \
+ _arguments \
'--silent[Silences stdout/stderr output]' \
- '--lts=[When installing, only select from LTS versions]::lts_name' \
+ '--lts=-[When installing, only select from LTS versions]::lts_name' \
'--no-colors[Suppress colored output]' \
&& ret=0
;;
(version-remote)
- _arguments -C \
- '--lts=[When installing, only select from LTS versions]::lts_name' \
+ _arguments \
+ '--lts=-[When installing, only select from LTS versions]::lts_name' \
'1: :__nvm_versions' \
&& ret=0
;;
(deactivate)
- _arguments -C \
+ _arguments \
'--silent=[Silences stdout/stderr output]' \
&& ret=0
;;
(alias)
- _arguments -C \
+ _arguments \
'1:name' \
'2:version:__nvm_installed_versions' \
&& ret=0
;;
(unalias)
- _arguments -C \
+ _arguments \
'1:version:__nvm_installed_versions' \
&& ret=0
;;
(reinstall-package)
- _arguments -C \
+ _arguments \
'--silent=[Silences stdout/stderr output]' \
'1: :__nvm_installed_versions' \
&& ret=0
;;
(which)
- _arguments -C \
+ _arguments \
+ '--silent[Silences stdout/stderr output when a version is omitted]' \
'1: : _alternative "version:version:__nvm_installed_versions" "current: :(current)"' \
&& ret=0
;;
(cache)
- _arguments -C \
+ _arguments \
'1: :__nvm_cache_subcommands' \
&& ret=0
;;