mirror of
https://github.com/conda-incubator/conda-zsh-completion.git
synced 2026-10-20 04:25:20 +08:00
feat: list only directories for prefixes
This commit is contained in:
@@ -462,7 +462,7 @@ json_opts=(
|
|||||||
|
|
||||||
env_opts=(
|
env_opts=(
|
||||||
'(-n --name -p --prefix)'{-n,--name}'[name of environment]:environment:__conda_envs' \
|
'(-n --name -p --prefix)'{-n,--name}'[name of environment]:environment:__conda_envs' \
|
||||||
'(-n --name -p --prefix)'{-p,--prefix}'[full path to environment prefix]:path:_path_files' \
|
'(-n --name -p --prefix)'{-p,--prefix}'[full path to environment prefix]:prefix:_directories' \
|
||||||
)
|
)
|
||||||
|
|
||||||
channel_opts=(
|
channel_opts=(
|
||||||
@@ -739,7 +739,7 @@ case $state in
|
|||||||
(activate)
|
(activate)
|
||||||
_arguments -C $help_opts \
|
_arguments -C $help_opts \
|
||||||
'--stack[activate this environment on top of the previous environment]' \
|
'--stack[activate this environment on top of the previous environment]' \
|
||||||
'*:environment:{__conda_envs; _path_files}'
|
'*:environment:{__conda_envs; _directories}'
|
||||||
;;
|
;;
|
||||||
(deactivate)
|
(deactivate)
|
||||||
_arguments -C $help_opts \
|
_arguments -C $help_opts \
|
||||||
|
|||||||
Reference in New Issue
Block a user