Customize Virtualenv Prompt #10337
Replies: 1 comment
|
The The relevant old code is in I checked the 20.30.0 writer directly in a temporary directory containing So the next step is to update the virtualenv used by Poetry itself, using the installation method that manages Poetry. Updating virtualenv inside the application environment does not necessarily update Poetry's own dependency. You can keep: virtualenvs.prompt = "{project_name}"in Poetry's configuration ( poetry config --local virtualenvs.prompt '{project_name}'An existing This is a verified explanation of the old writer; I did not reproduce your complete original Poetry/mise setup. AI assistance: written with OpenAI Codex; the old-writer checks were run locally. |
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 installI 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.All reactions