Detect available Python virtual environments in your current directory
MIT License
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
$PATH
to the python script$PS1
env var in your .bashrc
to include a call to the python scriptA few things to note...
VENV_DIRS
for a comma-separated list of your common virtual environment directories. This will default to venv
if unset