Change nu_conda list to output active status of environment as well (#604) (#605)

This commit is contained in:
Marshall Bruner 2023-09-12 21:50:42 +02:00 committed by GitHub
parent e61b94efce
commit 8260da5fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,12 @@ export def-env deactivate [] {
}
export def-env list [] {
print $env.CONDA_ENVS
$env.CONDA_ENVS |
flatten |
transpose |
rename name path |
insert active { |it| $it.name == $env.CONDA_CURR } |
move path --after active
}
def update-path-linux [env_path: path] {