From 56e2f5f7a7cb8c3126a9d36b6f1fa529e2844bc0 Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Thu, 8 Apr 2021 18:11:43 +0000 Subject: [PATCH] Add sourcing of extra global home stored environment variables --- bash/.bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index fc77278..7827a88 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -35,6 +35,11 @@ if [ -z "$__PROFILE_DONE" ]; then . $HOME/.profile fi +# Source .env to extend with secret/sensitive environment variables if it exists +if [ -r "$HOME/.env" ]; then + . "$HOME/.env" +fi + # Source aliases, if they exist if [ -f "$HOME/.aliases" ] && [ -r "$HOME/.aliases" ]; then