Skip to content

Commit

Permalink
feat: update conda completion to support newer conda versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Mar 12, 2024
1 parent fb6589f commit 05a74fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _conda
Original file line number Diff line number Diff line change
Expand Up @@ -703,18 +703,19 @@ case $state in
(create)
_arguments -C $help_opts \
$json_opts \
'(-n --name)'{-n,--name}'[name of environment]:environment:__conda_envs' \
$env_opts \
'(-f --file)'{-f,--file}'[environment definition]:file:_path_files' \
'(-q --quiet)'{-q,--quiet}'[]' \
;;
(export)
_arguments -C $help_opts \
'(-n --name)'{-n,--name}'[name of environment]:environment:__conda_envs' \
$env_opts \
'(-f --file)'{-f,--file}'[]:file:_path_files' \
;;
(list)
_arguments -C $help_opts \
$json_opts \
$env_opts
;;
(remove)
_arguments -C $help_opts \
Expand All @@ -727,7 +728,7 @@ case $state in
(update)
_arguments -C $help_opts \
$json_opts \
'(-n --name)'{-n,--name}'[name of environment]:environment:__conda_envs' \
$env_opts \
'(-f --file)'{-f,--file}'[environment definition]:file:_path_files' \
'(-q --quiet)'{-q,--quiet}'[]' \
;;
Expand All @@ -738,7 +739,7 @@ case $state in
(activate)
_arguments -C $help_opts \
'--stack[activate this environment on top of the previous environment]' \
'*:environment:__conda_envs'
'*:environment:{__conda_envs; _path_files}'
;;
(deactivate)
_arguments -C $help_opts \
Expand Down

0 comments on commit 05a74fb

Please sign in to comment.