From 07debe7014790380ffc94e81a3d5b20db1cdf572 Mon Sep 17 00:00:00 2001 From: Khaled Hassan Date: Mon, 19 Jun 2023 15:37:05 -0400 Subject: [PATCH 1/2] add .envrc and instructions in readme.md --- .envrc | 2 ++ readme.md | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..9bb4e24 --- /dev/null +++ b/.envrc @@ -0,0 +1,2 @@ +PATH_add infrastructure/scripts + diff --git a/readme.md b/readme.md index 17273b6..3937937 100644 --- a/readme.md +++ b/readme.md @@ -39,6 +39,10 @@ git pull --rebase origin master ./infrastructure/scripts/environment_bootstrap.sh ``` +### Using `direnv` + +1. Set up `direnv` ([install the binary/package](https://direnv.net/docs/installation.html) + [hook into your shell](https://direnv.net/docs/hook.html)). +2. Run `direnv allow` inside your repo. `direnv` should complain about being blocked until you do this. # How to get the Docker image From 94e5b8b98fca1e1dad624888764ecf943d42bee8 Mon Sep 17 00:00:00 2001 From: Khaled Hassan Date: Mon, 19 Jun 2023 15:44:09 -0400 Subject: [PATCH 2/2] add pointer to direnv builtins --- .envrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.envrc b/.envrc index 9bb4e24..fcb863e 100644 --- a/.envrc +++ b/.envrc @@ -1,2 +1,4 @@ +# direnv's .envrc works with bash-like export and unset, etc. +# but see `man direnv-stdlib` or for built-in functions PATH_add infrastructure/scripts