nu_scripts
nu_scripts copied to clipboard
Micromamba support
In order to support micromamba, I changed the completion in the conda.nu module to:
def get-envs [] {
micromamba env list --json | from json | get envs | each { |p| { path: $p, name: ($p | path basename) } }
}
def 'nu-complete conda envs' [] {
get-envs | get name
}
and the first lines of export def-env activate
to:
let envs = (get-envs)
let env_dir = ($envs | where name == $env_name | get path | first)
I'm assuming this is more of a tip than an issue. If that's the case. We can just close this and people who search for micromamba can find it.
we could change it to autodetect.
let flavor = if (which conda | length) == 0 { 'conda' } else if ... else { make error { ... }}
we could change ...
Sure. If someone wants to submit that to close this issue. I'm cool with that.
fixed by #800 can you try again @flying-sheep ?
Looks good!