Skip to content

🐍 Detect available Python virtual environments in your current directory

License

Notifications You must be signed in to change notification settings

trstringer/venvdetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Environment Detector (Bash)

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.

screenshot

Setup

  1. $ git clone https://github.com/tstringer/venvdetect.git
  2. Create a symlink from a path in $PATH to the python script
  3. Change your $PS1 env var in your .bashrc to include a call to the python script

A few things to note...

  1. This script will use an optional env var VENV_DIRS for a comma-separated list of your common virtual environment directories. This will default to venv if unset
  2. It won't show an "available" virtual environment if that virtual environment is already activated

About

🐍 Detect available Python virtual environments in your current directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages