Install direnv

direnv takes care of exporting environment variables automatically based on the directory we’re in.

To install direnv, run the following commands.

curl -sfL https://direnv.net/install.sh | bash
echo "eval '$(direnv hook bash)'" >> ~/.bashrc
source ~/.bashrc