Merge pull request #1381 from Bash-it/feature/gcloud-completion

Add Google Cloud SDK tab completion
pull/1383/head
Travis Swicegood 2019-05-24 20:51:33 -05:00 committed by GitHub
commit 4ac1db5d68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#/usr/bin/env bash
# Bash completion for Google Cloud SDK
if which gcloud >/dev/null 2>&1; then
GOOGLE_SDK_ROOT=${GOOGLE_SDK_ROOT:-$(gcloud info --format="value(installation.sdk_root)")}
for i in $(ls ${GOOGLE_SDK_ROOT}/*.bash.inc); do
source $i
done
fi