From 3b2db9027acdb39b3d8a7158a8cb790ffd883a5f Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 3 May 2024 10:53:39 -0400 Subject: [PATCH] envrc: allow loading env vars from `.env` if it exists from https://or.computer.surgery/charles/matrix/-/commit/ffd479d66fae5092073ff380d25fac3735d055bd This is primarily useful for replicating the environment from CI so that the `nix-build-and-cache` script is easier to invoke. Signed-off-by: strawberry --- .envrc | 2 ++ .gitignore | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.envrc b/.envrc index 403a9bdf..e080e228 100644 --- a/.envrc +++ b/.envrc @@ -3,3 +3,5 @@ use flake PATH_add bin + +dotenv_if_exists diff --git a/.gitignore b/.gitignore index aff8ab91..cf366522 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Local environment overrides +/.env + # CMake cmake-build-*/