4f63b99cee
Define my YNAB personal access token as an environment variable. Prefix Monzo environment variables with "monzo_" to more easily differentiate between Monzo credentials and YNAB credentials.
11 lines
579 B
Bash
11 lines
579 B
Bash
# source_up traversing up directories until it finds the nearest .envrc file,
|
|
# which it uses to extend the environment in this .envrc.
|
|
#
|
|
# Since ../.envrc calls `eval "$(lorri direnv)"`, the buildInputs and variables
|
|
# definitions inside of the attribute set passed to pkgs.mkShell become
|
|
# available here as well.
|
|
source_up
|
|
export monzo_client_id="$(pass show finance/monzo/client-id)"
|
|
export monzo_client_secret="$(pass show finance/monzo/client-secret)"
|
|
export ynab_personal_access_token="$(pass show finance/youneedabudget.com/personal-access-token)"
|
|
eval "$(lorri direnv)"
|