Customize Virtualenv Prompt #10337
Unanswered
jplindquist
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been combing through docs and code for a while now, and see that it is possible to customize the virtualenv prompt by setting
virtualenvs.prompt
, an I would like it to be as simple/short as possible for my case (just using{project_name}
), but when attempting to do so, the virtualenv prompt is consistently set to the full path of the project. Is this something I'm doing wrong, or is there a way to do this? I don't know if it matters, but in this case I'm just using poetry for dependency manage (package-mode = false).After running
poetry install
I end up with the following venv.cfg that has prompt set to a full path vs. what is specifiedIf I leave the default, or set the prompt to
{project_name}
+ anything else, it works as expected, e.g.Beta Was this translation helpful? Give feedback.
All reactions