Direnv

| Comments

brew install direnv

Normally, to make it also work with .env files, this can be configured in ~/.config/direnv/direnv.toml:

[global]
load_dotenv = true

Unfortunately, it has issues with 1Password’s Developer Environments, so for each .env I’m creating a companion .envrc file:

set -a; source .env; set +a