Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micromamba support #295

Closed
flying-sheep opened this issue Sep 20, 2022 · 5 comments
Closed

Micromamba support #295

flying-sheep opened this issue Sep 20, 2022 · 5 comments

Comments

@flying-sheep
Copy link

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)
@fdncred
Copy link
Collaborator

fdncred commented Sep 20, 2022

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.

@flying-sheep
Copy link
Author

flying-sheep commented Sep 21, 2022

we could change it to autodetect.

let flavor = if (which conda | length) == 0 { 'conda' } else if ... else { make error { ... }}

@fdncred
Copy link
Collaborator

fdncred commented Sep 21, 2022

we could change ...

Sure. If someone wants to submit that to close this issue. I'm cool with that.

@AucaCoyan
Copy link
Contributor

fixed by #800 can you try again @flying-sheep ?

@flying-sheep
Copy link
Author

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants