Follow the [installation instructions](https://github.com/direnv/direnv#basic-installation). In a nutshell:
- install direnv with your local package manager
- ensure your shell rc script has the right command, e.g., `eval "$(direnv hook zsh)"`
To use direnv, now pipe commands into local `.envrc` files, such as activating environments or setting variables.
Notice the [Poetry setup](Poetry%20setup.md) for the special case of using direnv to spawn, for example, a poetry shell.