[issue35328] Set a environment variable for venv prompt

2018-11-27 Thread Baptiste Darthenay
Baptiste Darthenay added the comment: How the venv prompt name would be displayed in a project like Powerline? Or in VS Code? https://i.ibb.co/JHYrnk2/Screenshot-from-2018-11-27-19-41-47.png Or in my custom prompt? https://gist.github.com/batisteo/c5c9bd87a344cdbfb7a6401648c118a2#file

[issue35328] Set a environment variable for venv prompt

2018-11-27 Thread Baptiste Darthenay
Change by Baptiste Darthenay : -- keywords: +patch pull_requests: +9992 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35328> ___ _

[issue35328] Set a environment variable for venv prompt

2018-11-27 Thread Baptiste Darthenay
New submission from Baptiste Darthenay : When creating a new virtual env with `python3 -m venv .venv --prompt env`, the prompt information is only used to set a temporary PS1. This information is lost when using custom prompt, for example with ZSH. I propose to set VIRTUAL_ENV_PROMPT