138070f3f6
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.
5 lines
266 B
Bash
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)"
|