Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 406 Bytes

direnv.md

File metadata and controls

31 lines (21 loc) · 406 Bytes

Setup

sudo apt install direnv

add the following to .profile

eval "$(direnv hook bash)"

or to .zshrc

eval "$(direnv hook zsh)"

Usage

In the dev directory add a new .envrc file with the environment variables

echo export [email protected] > .envrc

Enable the directory as a parent (from the directory)

dotenv allow .