powerlevel10k
powerlevel10k copied to clipboard
Python virtual environment prompt doesn't use the prompt configured on creation
Summary
powerlevel10k generally doesn't currently show the custom prompt configured on virtual environment creation.
Observed behavior
virtualenv on all Python versions:
venv module on Python 3.9 and below
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
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).
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.
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.
My mistake, sorry, somehow similar to this.