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

nu_conda list should show which environments are activated #604

Closed
brunerm99 opened this issue Sep 12, 2023 · 1 comment
Closed

nu_conda list should show which environments are activated #604

brunerm99 opened this issue Sep 12, 2023 · 1 comment

Comments

@brunerm99
Copy link
Contributor

It would be nice if the nu_conda list command in the nu_conda module would show which environment is activated.

I modified and will submit a PR to change the behavior from outputting (example on my system):

➜ nu_conda list
╭──────┬─────────────────────────────────────╮
│ base │ /home/marchall/.anaconda3           │
│ data │ /home/marchall/.anaconda3/envs/data │
╰──────┴─────────────────────────────────────╯

to:

➜ nu_conda list
╭───┬──────┬────────┬─────────────────────────────────────╮
│ # │ name │ active │                path                 │
├───┼──────┼────────┼─────────────────────────────────────┤
│ 0 │ base │ false  │ /home/marchall/.anaconda3           │
│ 1 │ data │ true   │ /home/marchall/.anaconda3/envs/data │
╰───┴──────┴────────┴─────────────────────────────────────╯

Also, this way you get a pipeable output instead of just printing $env.CONDA_ENVS.

@fdncred
Copy link
Collaborator

fdncred commented Sep 12, 2023

closed by #604

@fdncred fdncred closed this as completed Sep 12, 2023
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

2 participants