about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--monzo-ynab/.envrc2
-rw-r--r--monzo_ynab/.envrc5
2 files changed, 5 insertions, 2 deletions
diff --git a/monzo-ynab/.envrc b/monzo-ynab/.envrc
deleted file mode 100644
index 6a45e34bd0a2..000000000000
--- a/monzo-ynab/.envrc
+++ /dev/null
@@ -1,2 +0,0 @@
-export client_id="$(pass show finance/monzo/client-id)"
-export client_secret="$(pass show finance/monzo/client-secret)"
diff --git a/monzo_ynab/.envrc b/monzo_ynab/.envrc
new file mode 100644
index 000000000000..265077343800
--- /dev/null
+++ b/monzo_ynab/.envrc
@@ -0,0 +1,5 @@
+# source_up traversing up directories until it finds the nearest .envrc file,
+# which it uses to extend the environment in this .envrc.
+source_up
+export client_id="$(pass show finance/monzo/client-id)"
+export client_secret="$(pass show finance/monzo/client-secret)"