diff --git a/modules/virtual_environments/conda.nu b/modules/virtual_environments/conda.nu index 70fd4f531..270be37aa 100644 --- a/modules/virtual_environments/conda.nu +++ b/modules/virtual_environments/conda.nu @@ -1,5 +1,5 @@ # Activate conda environment -export def --env activate [ +export def --env "conda activate" [ env_name?: string@'nu-complete conda envs' # name of the environment ] { let conda_info = (conda info --envs --json | from json) @@ -73,7 +73,7 @@ export def --env activate [ } # Deactivate currently active conda environment -export def --env deactivate [] { +export def --env "conda deactivate" [] { let path_name = if "PATH" in $env { "PATH" } else { "Path" } $env.$path_name = $env.CONDA_OLD_PATH