tvl-depot/monzo_ynab/.envrc
William Carroll 138070f3f6 Inherit parent's .envrc variables
I discovered direnv's convenient `source_up` function today. I needed it to
inherit the values defined in ~/briefcase/.envrc, and it's working exactly as I
expected it would. What a fine piece of software direnv is.
2020-02-05 23:26:57 +00:00

5 lines
266 B
Bash

# 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)"