Problem with Python Environment Name #5405
-
Hello I've customized one of the themes and added to the prompt the name of the virtual Python environment I'm working in, but I'm having a problem. In the template I have activated the name of the virtual environment to be shown if it is present: But if my virtual environment is called "venv" which is the default name, I don't see that name, but the name of the project: That does not happen if the name of the virtual environment is different from "venv", for example, you can see in the screenshot that when I have activated the Conda virtual environment, there is the correct name: What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@afigueroa1973 you need to enable EDIT: wait, you did. I'll have a look. |
Beta Was this translation helpful? Give feedback.
-
When I was trying out the python segment, I found this out that might be related: |
Beta Was this translation helpful? Give feedback.
When I was trying out the python segment, I found this out that might be related:
If the
.venv/pyvenv.cfg
has the propertyprompt = any name
, oh-my-posh uses that name when displaying the{{ .Venv }}
property.