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

Python: show system python instead of virtualenv #6400

Open
serl opened this issue Nov 15, 2024 · 0 comments
Open

Python: show system python instead of virtualenv #6400

serl opened this issue Nov 15, 2024 · 0 comments
Labels
✨ enhancement A new feature implementation.

Comments

@serl
Copy link

serl commented Nov 15, 2024

Feature Request

Is your feature request related to a problem? Please describe.

Normally, when working on Python projects, I use a venv. The name is either .venv or python-31X, depending on the tooling. Still, I have one venv per project and normally it's automatically activated (by direnv).
I wish to know when the machinery is broken and no venv is activated (or the project is so new I didn't configure one yet).

Describe the solution you'd like

Since the names of my venvs are always quite predictable (and I don't feel that special among the pythonists), I think that it would be fantastic to have something to mean that "no venv is activated". That would convey the same information of the activated virtualenv for me, but potentially in a more compact way.

In particular we could add a new variable to the python config, something like no_virtualenv, empty (or not?) by default, and the format may become 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\)$no_virtualenv )]($style)'.

Describe alternatives you've considered

Leaving everything like it is now gives me all the information, but I'd like to keep the prompt a little more concise if possible.

Let me know if you like the idea, I'd go for a PR 🙂

@serl serl added the ✨ enhancement A new feature implementation. label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement A new feature implementation.
Projects
None yet
Development

No branches or pull requests

1 participant