Skip to content

Commit

Permalink
fix: prefix conda commands with conda
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Apr 12, 2024
1 parent 2d3406b commit 78ef9fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/virtual_environments/conda.nu
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 78ef9fd

Please sign in to comment.