From 78ef9fdce9d451ee6f60270daa326d65fd473063 Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Fri, 12 Apr 2024 04:41:30 +0100 Subject: [PATCH] fix: prefix conda commands with `conda` --- modules/virtual_environments/conda.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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