From a15ac80bba400cffd6a2e2e32be9c39cd7d13411 Mon Sep 17 00:00:00 2001 From: Gijs Key Date: Mon, 6 Sep 2021 11:28:32 +0200 Subject: [PATCH] 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. --- plugins/gcloud/gcloud.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/gcloud/gcloud.plugin.zsh b/plugins/gcloud/gcloud.plugin.zsh index c7aebe697..7368eb3a6 100644 --- a/plugins/gcloud/gcloud.plugin.zsh +++ b/plugins/gcloud/gcloud.plugin.zsh @@ -7,6 +7,7 @@ if [[ -z "${CLOUDSDK_HOME}" ]]; then search_locations=( "$HOME/google-cloud-sdk" "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk" + "/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk" "/usr/share/google-cloud-sdk" "/snap/google-cloud-sdk/current" "/usr/lib64/google-cloud-sdk/"