(01)Install direnv
Linux
1sudo apt-get install -y direnv2echo 'eval "$(direnv hook bash)"' >> ~/.bashrcAuto-load project env vars when you cd into a folder
What is this?
direnv loads environment variables automatically when you enter a project directory.
Where to create or edit the main configuration — paths below match the setup steps.
.envrcLocation: Project directory (auto-loaded on cd)
Per-project environment variables
Step 01
1sudo apt-get install -y direnv2echo 'eval "$(direnv hook bash)"' >> ~/.bashrcStep 02
1echo 'export API_KEY=dev' > .envrc2direnv allowStep 03
1direnv version