浏览代码

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.
Gijs Key 2 年之前
父节点
当前提交
a15ac80bba
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      plugins/gcloud/gcloud.plugin.zsh

+ 1 - 0
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/"