Skip to content

Commit

Permalink
feat: list only directories for prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Mar 12, 2024
1 parent 05a74fb commit 1f9a7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _conda
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 1f9a7f2

Please sign in to comment.