[issue35328] Set a environment variable for venv prompt

Baptiste Darthenay report at bugs.python.org
Tue Nov 27 11:12:29 EST 2018


New submission from Baptiste Darthenay <baptiste.darthenay at gmail.com>:

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=__VENV_PROMPT__ when activating the newly created venv, to be used by tools and other shells.

----------
messages: 330533
nosy: batisteo
priority: normal
severity: normal
status: open
title: Set a environment variable for venv prompt
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35328>
_______________________________________


More information about the Python-bugs-list mailing list