-
Notifications
You must be signed in to change notification settings - Fork 1
/
google-cloud
25 lines (21 loc) · 1.1 KB
/
google-cloud
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if [ -d "$HOME/.google-cloud-sdk" ]; then
# update PATH for the Google Cloud SDK.
source "$HOME/.google-cloud-sdk/path.zsh.inc"
# enable zsh c.etion for gcloud.
source "$HOME/.google-cloud-sdk/completion.zsh.inc"
fi
# The next line updates PATH for the Google Cloud SDK.
if [ -f "$HOME/.google-cloud-sdk/google-cloud-sdk/path.zsh.inc" ]; then
source "$HOME/.google-cloud-sdk/google-cloud-sdk/path.zsh.inc"
fi
# The next line enables shell command completion for gcloud.
if [ -f "$HOME/.google-cloud-sdk/google-cloud-sdk/completion.zsh.inc" ]; then
source "$HOME/.google-cloud-sdk/google-cloud-sdk/completion.zsh.inc"
fi
# Add support to google cloud from arch package
if [ -f "$HOME/.cache/pacaur/google-cloud-cli/pkg/google-cloud-cli/opt/google-cloud-cli/completion.zsh.inc" ]; then
source "$HOME/.cache/pacaur/google-cloud-cli/pkg/google-cloud-cli/opt/google-cloud-cli/completion.zsh.inc"
fi
if [ -f "$HOME/.cache/pacaur/google-cloud-cli/pkg/google-cloud-cli/opt/google-cloud-cli/path.zsh.inc" ]; then
source"$HOME/.cache/pacaur/google-cloud-cli/pkg/google-cloud-cli/opt/google-cloud-cli/path.zsh.inc"
fi