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

pixi list should default to the shell-environment if active #893

Closed
0xbe7a opened this issue Mar 1, 2024 · 4 comments · Fixed by #1145
Closed

pixi list should default to the shell-environment if active #893

0xbe7a opened this issue Mar 1, 2024 · 4 comments · Fixed by #1145
Labels
✨ enhancement Feature request

Comments

@0xbe7a
Copy link
Contributor

0xbe7a commented Mar 1, 2024

Problem description

When running with an active environment, e.g. pixi shell -e $ENV, pixi list should list the currently activated env like pixi list -e $ENV by default instead of listing the default environment.

@0xbe7a 0xbe7a added the ✨ enhancement Feature request label Mar 1, 2024
@pavelzw
Copy link
Contributor

pavelzw commented Mar 1, 2024

Just checking PIXI_ENVIRONMENT_NAME should be enough for this.

@pavelzw
Copy link
Contributor

pavelzw commented Mar 1, 2024

Also having some indication which environment is used would be nice.
Currently it's not possible to see the env which is listed

❯ pixi list
Package                        Version     Build                 Size        Kind   Source
attrs                          23.2.0      pyh71513ae_0          53.3 KiB    conda  attrs-23.2.0-pyh71513ae_0.conda
backports.zoneinfo             0.2.1       py39h2804cbe_8        6.7 KiB     conda  backports.zoneinfo-0.2.1-py39h2804cbe_8.conda
bzip2                          1.0.8       h93a5062_5            119.5 KiB   conda  bzip2-1.0.8-h93a5062_5.conda
ca-certificates                2023.11.17  hf0a4a13_0            150.8 KiB   conda  ca-certificates-2023.11.17-hf0a4a13_0.conda

@pavelzw
Copy link
Contributor

pavelzw commented Apr 8, 2024

Fixed by #1080?

@ruben-arts
Copy link
Contributor

Not your request for which env it lists @pavelzw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement Feature request
Projects
None yet
3 participants