Skip to content

Instantly share code, notes, and snippets.

@kingnebby
Last active May 20, 2020 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingnebby/fe79535ba9837c8608d424c1ca3b3259 to your computer and use it in GitHub Desktop.
Save kingnebby/fe79535ba9837c8608d424c1ca3b3259 to your computer and use it in GitHub Desktop.
Adding in the saving feature
AZ_ENV_FILE=$HOME/.my-env/umbrella-corp-env-az
touch $AZ_ENV_FILE
source <(cat $AZ_ENV_FILE)
env-az() {
#
# ... all read-from-user code that we previously wrote
#
# Can run this before calling the env-az-setup command
echo "\\
export AZ_SUB_ENV=$AZ_SUB_ENV;\\n\\
export AZ_AKS_ENV=$AZ_AKS_ENV;\\n\\
" > $AZ_ENV_FILE
env-az-setup;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment