Activate Python virtual environment on dictionary access via bash script.
Add the following line to bash_profile
or bashrc
:
source < path to >/aa_venv.sh
Save your virtual environments to a dictionary named .pyenv
inside your home dictionary.
For the script to activate your virtual environment place a .venv
in the root of your dictionary and add the name of your virtual environment to it.