feat: list only directories for prefixes

This commit is contained in:
Nuri Jung
2024-03-12 21:31:03 +09:00
parent 05a74fb907
commit 1f9a7f2668
+2 -2
View File
@@ -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 \