12
Notes
- direnv the tool I didn't know I needed!
- Docs,
- direnv hook: https://direnv.net/docs/hook.html
- main site: https://direnv.net/
- install on Fedora 33 with
sudo dnf -y install direnv
- Zsh config to hook in direnv
# direnv if [ $(command -v direnv) ]; then eval "$(direnv hook zsh)" fi
- In a new project create a
.envrc
file and adddotenv
to it to load your environment variables - Allow the file with
direnv allow
- Alias to initialise direnv ini new projects:
# direnv alias -g di='echo dotenv > .envrc && touch .env && direnv allow'
- Docs,
Links
- Unclutter your .profile with direnv & Updated Environment Variables Crash Course: https://www.youtube.com/watch?v=YkxoGRpHcVQ
- How I Automated the Boring with JavaScript, Cloudflare Workers, and Airtable: https://www.youtube.com/watch?v=tFQ2kbiu1K4