From 1f9a7f2668530fe9d9afb6491bedf3ffabbac295 Mon Sep 17 00:00:00 2001 From: Nuri Jung Date: Tue, 12 Mar 2024 21:18:51 +0900 Subject: [PATCH] feat: list only directories for prefixes --- _conda | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_conda b/_conda index fbea65a..733c691 100644 --- a/_conda +++ b/_conda @@ -462,7 +462,7 @@ json_opts=( env_opts=( '(-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=( @@ -739,7 +739,7 @@ case $state in (activate) _arguments -C $help_opts \ '--stack[activate this environment on top of the previous environment]' \ - '*:environment:{__conda_envs; _path_files}' + '*:environment:{__conda_envs; _directories}' ;; (deactivate) _arguments -C $help_opts \