Add news items for new prompt-controlling env vars

This commit is contained in:
Brian Skinn 2019-01-31 00:15:48 -05:00
parent 4b7944ceed
commit 85783ed2db
2 changed files with 30 additions and 1 deletions

View file

@ -6,7 +6,7 @@
**Changed:**
* ``env_name`` prompt field now looks up the pre- and post-fix characters,
rather than relying on hard-coded values/
rather than relying on hard-coded values.
**Deprecated:**

29
news/prompt-env-vars.rst Normal file
View file

@ -0,0 +1,29 @@
**Added:**
* Rendering of ``{env_name}`` in ``$PROMPT`` is now suppressed if
the ``$VIRTUAL_ENV_DISABLE_PROMPT`` environment variable is
defined and truthy.
* Rendering of ``{env_name}`` in ``$PROMPT`` is now overridden by
the value of ``str($VIRTUAL_ENV_PROMPT)`` if that environment variable
is defined and ``not None``. ``$VIRTUAL_ENV_DISABLE_PROMPT`` takes precedence
over ``$VIRTUAL_ENV_PROMPT``.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>