Skip to content

Instantly share code, notes, and snippets.

@reidjs
Created June 24, 2025 18:40
Show Gist options
  • Save reidjs/b969ba732842fa88e4ffaedea376eef4 to your computer and use it in GitHub Desktop.
Save reidjs/b969ba732842fa88e4ffaedea376eef4 to your computer and use it in GitHub Desktop.
How to automatically start python virtual environments
  1. Install direnv https://direnv.net/

  2. Create a .envrc with this line in it: layout python $(which python3)

  3. Run direnv allow in the folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment