dotfiles/.bash_it/completion/available/gcloud.completion.bash

15 lines
398 B
Bash
Raw Normal View History

2022-02-27 20:00:49 +01:00
# shellcheck shell=bash
cite "about-completion"
about-completion "Google Cloud SDK completion"
if _command_exists gcloud; then
# get install path
GOOGLE_SDK_ROOT=${GOOGLE_SDK_ROOT:-$(gcloud info --format="value(installation.sdk_root)")}
# source all the bash completion file that are available
for i in "${GOOGLE_SDK_ROOT}"/*.bash.inc; do
# shellcheck disable=SC1090
source "$i"
done
fi