Activate Python virtual environment automatically on iTerm2
1. Create a function in the .zshrc # ~/.zshrc activate() { if [ -d ".venv" ]; then source .venv/bin/activate else : # ignore if no .venv fi } Enter fullscreen mode Exit fullscreen mode 2. Set iTerm to call this...