Last active
May 30, 2019 06:35
-
-
Save umanoda/fa3648f1bc14c6a7356394bee27fc5d6 to your computer and use it in GitHub Desktop.
bash alias : gcloud util
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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