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 virtual environment prompt doesn't use the prompt configured on creation #1937

Closed
Jackenmen opened this issue Jul 11, 2022 · 3 comments · Fixed by #2540
Closed

Python virtual environment prompt doesn't use the prompt configured on creation #1937

Jackenmen opened this issue Jul 11, 2022 · 3 comments · Fixed by #2540

Comments

@Jackenmen
Copy link

Summary

powerlevel10k generally doesn't currently show the custom prompt configured on virtual environment creation.

Observed behavior

virtualenv on all Python versions:
image

venv module on Python 3.9 and below

image

Additional information

It seems that there is partial support for this functionality - it works with the venv module on Python 3.10 and above:

venv module on Python 3.10

image

However, it would be great if powerlevel10k supported virtualenv as well as the venv module from the versions earlier than 3.10. The information about the prompt is stored in the pyvenv.cfg file in the root of the virtual environment so that could be used to get the custom prompt (note that it's not filled when no custom prompt is set).

@mdragoss
Copy link

mdragoss commented Dec 8, 2022

Have the same problem, p10k doesn't display if I'm using virtual environment or not. Hard to understand what I'm using and where my packages are.

@romkatv
Copy link
Owner

romkatv commented Dec 8, 2022

Have the same problem, p10k doesn't display if I'm using virtual environment or not. Hard to understand what I'm using and where my packages are.

That doesn't sound like the same issue at all.

@mdragoss
Copy link

mdragoss commented Dec 8, 2022

My mistake, sorry, somehow similar to this.

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

Successfully merging a pull request may close this issue.

3 participants