# 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
