mirror of
https://github.com/conda-incubator/conda-zsh-completion.git
synced 2026-10-20 04:25:20 +08:00
all the other options for install
This commit is contained in:
@@ -11,6 +11,15 @@ __conda_envs(){
|
|||||||
_describe -t envs 'conda environments' envs
|
_describe -t envs 'conda environments' envs
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__conda_channels(){
|
||||||
|
|
||||||
|
local -a channels
|
||||||
|
channels=("default\nsystem")
|
||||||
|
_describe -t channels 'conda channels' channels
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
local -a opts
|
local -a opts
|
||||||
opts=(
|
opts=(
|
||||||
'(-h --help)'{-h,--help}'[show this help message and exit]'
|
'(-h --help)'{-h,--help}'[show this help message and exit]'
|
||||||
@@ -61,6 +70,25 @@ case $state in
|
|||||||
case ${line[1]} in
|
case ${line[1]} in
|
||||||
(install)
|
(install)
|
||||||
_arguments '(-n --name=)'{-n,--name=}'[install into given conda environment]:environment:__conda_envs' \
|
_arguments '(-n --name=)'{-n,--name=}'[install into given conda environment]:environment:__conda_envs' \
|
||||||
|
'(-h --help)'{-h,--help}'[show the help message and exit]' \
|
||||||
|
'--revision[revert to the specified revision]:revision' \
|
||||||
|
'(-y --yes)'{-y,--yes}'[do not ask for confirmation]' \
|
||||||
|
'--dry-run[only display what would have been done]' \
|
||||||
|
'--file[read package versions from file]:file:_path_files' \
|
||||||
|
'--unknown[use index metadata from the local package cache]' \
|
||||||
|
'--no-deps[do not install dependencies]' \
|
||||||
|
'(-m --mkdir)'{-m,--mkdir}'[create prefix directory if necessary]' \
|
||||||
|
'--use-index-cache[use cache of channel index files]' \
|
||||||
|
'--use-local[use locally built packages]' \
|
||||||
|
'--offline[offline mode, don''t connect to internet]' \
|
||||||
|
'--no-pin[ignore pinned file]' \
|
||||||
|
'(-c --channel)'{-c,--channel}'[additional channel to search for packages]:channel:__conda_channels'\
|
||||||
|
'--override-channels [do not search default or .condarc channels]' \
|
||||||
|
'(-p --prefix)'{-p,--prefix}'[full path to environment prefix]:path:_path_files' \
|
||||||
|
'(-q --quiet)'{-q,--quiet}'[do not display progress bar]'\
|
||||||
|
'--copy[Install all packages using copies instead of hard- or soft-linking]' \
|
||||||
|
'--alt-hint[Use an alternate algorithm to generate an unsatisfiable hint]' \
|
||||||
|
'--json[report all output as json.]' \
|
||||||
;;
|
;;
|
||||||
(*)
|
(*)
|
||||||
#_arguments -C $opts
|
#_arguments -C $opts
|
||||||
|
|||||||
Reference in New Issue
Block a user