Use this to quickly jump between different environments using script commands and environment variables.
Install DirEnv which will prompt you to approve the .envrc
to auto-execute when you cd
into a directory.
Add the direnv hook to your shell $HOME/.bashrc
or similar:
eval "$(direnv hook bash)"
cd
to a dir with a .envrc
and then run this allow it to execute each time:
direnv allow
To edit, will auto-approve when you save and exit:
direnv edit
.envrc-kubernetes - Kubernetes-configs repo
or