# Function to activate virtualenv if present auto_activate_virtualenv() { if [ -f "bin/activate" ]; then source bin/activate fi } # Add the function to chpwd hooks add-zsh-hook chpwd auto_activate_virtualenv
Adventures in Computer Programming – bakert@gmail.com
# Function to activate virtualenv if present auto_activate_virtualenv() { if [ -f "bin/activate" ]; then source bin/activate fi } # Add the function to chpwd hooks add-zsh-hook chpwd auto_activate_virtualenv