mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 06:46:40 +00:00
21 lines
491 B
Bash
21 lines
491 B
Bash
#
|
|
# Google Cloud SDK setup.
|
|
#
|
|
|
|
# Lazy load gcloud shell completion on first use.
|
|
if command-exists gcloud; then
|
|
_python_argcomplete() {
|
|
load-gcloud-completion
|
|
_python_argcomplete "$@"
|
|
}
|
|
|
|
compctl -K _python_argcomplete gcloud
|
|
|
|
load-gcloud-completion() {
|
|
unset -f load-gcloud-completion _python_argcomplete
|
|
if [ -n "$HOMEBREW_PREFIX" ]; then
|
|
source-if-exists "${HOMEBREW_PREFIX}/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
|
|
fi
|
|
}
|
|
fi
|