Skip to content

Instantly share code, notes, and snippets.

@broady
Created April 27, 2018 15:07
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 broady/b9465f447512d7310a0dd6c0ea81a10d to your computer and use it in GitHub Desktop.
Save broady/b9465f447512d7310a0dd6c0ea81a10d to your computer and use it in GitHub Desktop.
Different bash sessions for different gcloud users/projects
alias labs-sh="bash --rcfile ${envs}/labs.rc -i"
~ $ cat ~/dotfiles/envs/labs.rc
source ~/.bash_profile
source ~/.bash_login
echo ok
export PS1="[labs]$PS1"
export CLOUDSDK_CONFIG=$HOME/.config/gcloud-labs
export GOOGLE_APPLICATION_CREDENTIALS=$CLOUDSDK_CONFIG/application_default_credentials.json
gcloud container clusters get-credentials gke --zone us-west1-a --project cbro-labs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment