powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

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

Open Jackenmen opened this issue 1 year ago • 3 comments

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).

Jackenmen avatar Jul 11 '22 05:07 Jackenmen

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.

mdragoss avatar Dec 08 '22 15:12 mdragoss

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.

romkatv avatar Dec 08 '22 15:12 romkatv

My mistake, sorry, somehow similar to this.

mdragoss avatar Dec 08 '22 16:12 mdragoss