[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-batisteo-zsh-theme-L194

--

___
Python tracker 
<https://bugs.python.org/issue35328>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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=__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 
<https://bugs.python.org/issue35328>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com