Quite often, #LLM models like #Claude are kind of just fancy wish machines. I asked Claude, “I have folders with venv's ...

Quite often, #LLM models like #Claude are kind of just fancy wish machines. I asked Claude, “I have folders with venv's in them, is there any way I can just have the venv automatically activate when I enter a subdirectory?” -- Why yes you can!chpwd() { if [[ -f ./bin/activate ]]; then source ./bin/activate elif [[ -n "$VIRTUAL_ENV" && "$PWD" != "${VIRTUAL_ENV:h}"* ]]; then deactivate fi }#Python #venv #zsh #zshrc #yaaaay

Read Original

Related