mirror of
https://github.com/conda-incubator/conda-zsh-completion.git
synced 2026-03-04 14:24:59 +08:00
update became aware of -n
This commit is contained in:
8
_conda
8
_conda
@@ -417,6 +417,12 @@ case $state in
|
||||
fi
|
||||
;;
|
||||
(update)
|
||||
local -a environment options specifier
|
||||
options=('-n' '--name' '-p' '--prefix')
|
||||
for i in $options ; do
|
||||
(( ${line[(I)$i]} )) && specifier=$i
|
||||
done
|
||||
[[ -n $specifier ]] && environment="$line[${line[(i)$specifier]}+1]"
|
||||
_arguments -C $help_opts \
|
||||
$env_opts \
|
||||
$install_opts \
|
||||
@@ -424,7 +430,7 @@ case $state in
|
||||
$channel_opts \
|
||||
'--unknown[use index metadata from the local package cache]' \
|
||||
'--all[Update all installed packages in the environment]' \
|
||||
'*:packages:__conda_packages_installed' \
|
||||
'*:packages:{__conda_packages_installed $specifier $environment}' \
|
||||
;;
|
||||
(remove|uninstall)
|
||||
local -a environment options specifier
|
||||
|
||||
Reference in New Issue
Block a user