Skip to content

Instantly share code, notes, and snippets.

@skobba
Created September 12, 2019 08:42
Show Gist options
  • Select an option

  • Save skobba/0b2b2dbca8b093ad067ac4a4ab10d2ef to your computer and use it in GitHub Desktop.

Select an option

Save skobba/0b2b2dbca8b093ad067ac4a4ab10d2ef to your computer and use it in GitHub Desktop.
Install direnv on Mac
  1. Install direnv brew install direnv

  2. Setup ~/.bashrc eval "$(direnv hook bash)"

  3. Create .envrc file: #!/bin/bash export MY_ENV="just some env"

  4. enable direnv in dir: direnv allow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment