2 Commits 1d09c6bb0a ... 6dfa9507ce

Author SHA1 Message Date
  Jason D'Amour 6dfa9507ce feat(gcloud): add homebrew installation path (#12308) 1 month ago
  Masaru Iritani 62a76353ab fix(starship): keep `ZSH_THEME` if not installed (#12309) 1 month ago
2 changed files with 4 additions and 3 deletions
  1. 1 0
      plugins/gcloud/gcloud.plugin.zsh
  2. 3 3
      plugins/starship/starship.plugin.zsh

+ 1 - 0
plugins/gcloud/gcloud.plugin.zsh

@@ -9,6 +9,7 @@ if [[ -z "${CLOUDSDK_HOME}" ]]; then
     "/usr/local/share/google-cloud-sdk"
     "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk"
     "/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk"
+    "/opt/homebrew/share/google-cloud-sdk"
     "/usr/share/google-cloud-sdk"
     "/snap/google-cloud-sdk/current"
     "/snap/google-cloud-cli/current"

+ 3 - 3
plugins/starship/starship.plugin.zsh

@@ -1,7 +1,7 @@
-# ignore oh-my-zsh theme
-unset ZSH_THEME
-
 if (( $+commands[starship] )); then
+  # ignore oh-my-zsh theme
+  unset ZSH_THEME
+
   eval "$(starship init zsh)"
 else
   echo '[oh-my-zsh] starship not found, please install it from https://starship.rs'