Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.