Skip to content

Instantly share code, notes, and snippets.

@umanoda
Last active May 30, 2019 06:35
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 umanoda/fa3648f1bc14c6a7356394bee27fc5d6 to your computer and use it in GitHub Desktop.
Save umanoda/fa3648f1bc14c6a7356394bee27fc5d6 to your computer and use it in GitHub Desktop.
bash alias : gcloud util
# Switch GCP project
alias gconf='gcloud config configurations list | gsed '\''1d'\'' | peco | gawk '\''{ print $1 }'\'' | xargs gcloud config configurations activate && gcloud config list'
# Show current GCP project
alias gcurrent='gcloud config configurations list | grep True | awk '\''{print $1}'\'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment