Skip to content

v4.15.1: 🐍 support `VIRTUAL_ENV_PROMPT`

Choose a tag to compare

@edouard-lopez edouard-lopez released this 13 Feb 14:58
· 24 commits to master since this release

🐍 Support VIRTUAL_ENV_PROMPT

In addition to the already implemented VIRTUAL_ENV variable, many Python virtual env tools also set VIRTUAL_ENV_PROMPT (e.g. virtualenv). Unlike VIRTUAL_ENV, which is the absolute path to the virtual env directory (e.g. /home/user/project/.venv), VIRTUAL_ENV_PROMPT is just the name of the virtual env project.

This pull request implements displaying VIRTUAL_ENV_PROMPT when it's set and defaulting to existing VIRTUAL_ENV or CONDA_DEFAULT_ENV base names otherwise.

Thanks to @gouline works on #405

What's Changed

New Contributors

Full Changelog: v4.15.0...v4.15.1