This script is meant to be used for your bash prompt. It simply detects if the current directory likely includes a virtual environment that can be activated.
$ git clone https://github.com/tstringer/venvdetect.git- Create a symlink from a path in
$PATHto the python script - Change your
$PS1env var in your.bashrcto include a call to the python script
A few things to note...
- This script will use an optional env var
VENV_DIRSfor a comma-separated list of your common virtual environment directories. This will default tovenvif unset - It won't show an "available" virtual environment if that virtual environment is already activated
