Is your feature request related to a problem? Please describe.
I've updated zimfw and related modules after a long time and notice that there's no longer an indicator prefix on the prompt for my virtual envs.
This stems from the following environment conditions:
I use poetry
I have this in my poetry config: virtualenvs.in-project = true.
The above config creates venvs in the /path/to/my/project/.venv folder.
Since the trailing path of the venv ends with .venv, the +"${${VIRTUAL_ENV:t}%%.*} fragment of the PS1 string in this theme makes the resulting venv 'name' to be a blank string.
This seems to have been introduced in 4f2f88f52f6a314c8bc3d13a3517c76d946637a7
Describe the solution you'd like
The old behavior where it would end up showing venv as the prompt prefix to indicate an active venv.
Describe alternatives you've considered
I could change my poetry config, but I'm filing this as a request for consideration as:
The behavior for this env used to 'work' before.
I figure having a venv in the project directory under a .venv subdirectory is not an uncommon configuration.
Is your feature request related to a problem? Please describe.
I've updated zimfw and related modules after a long time and notice that there's no longer an indicator prefix on the prompt for my virtual envs.
This stems from the following environment conditions:
poetry
virtualenvs.in-project = true
./path/to/my/project/.venv
folder..venv
, the+"${${VIRTUAL_ENV:t}%%.*}
fragment of thePS1
string in this theme makes the resulting venv 'name' to be a blank string.This seems to have been introduced in 4f2f88f52f6a314c8bc3d13a3517c76d946637a7
Describe the solution you'd like
The old behavior where it would end up showing
venv
as the prompt prefix to indicate an active venv.Describe alternatives you've considered
I could change my poetry config, but I'm filing this as a request for consideration as:
.venv
subdirectory is not an uncommon configuration.Thanks :)