a15ac80bba400cffd6a2e2e32be9c39cd7d13411

Author
Gijs Key <gmkey@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(gcloud): add Mac M1 Homebrew path (#10143)

Homebrew on Mac M1 is moved to the /opt/Homebrew location. This change updates the search
locations with this path.

Diff

 1diff --git a/plugins/gcloud/gcloud.plugin.zsh b/plugins/gcloud/gcloud.plugin.zsh
 2index c7aebe697d24bde8c11583cc8f339685a1f61dc6..7368eb3a6f56bcef59107cef7f76b7f17dc9f863 100644
 3--- a/plugins/gcloud/gcloud.plugin.zsh
 4+++ b/plugins/gcloud/gcloud.plugin.zsh
 5@@ -7,6 +7,7 @@ if [[ -z "${CLOUDSDK_HOME}" ]]; then
 6   search_locations=(
 7     "$HOME/google-cloud-sdk"
 8     "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk"
 9+    "/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk"
10     "/usr/share/google-cloud-sdk"
11     "/snap/google-cloud-sdk/current"
12     "/usr/lib64/google-cloud-sdk/"