91cd5341b9e682bf1c1be4a4051249cffdab7943

Author
Marc-Antoine Godde <marc-antoine.godde@hotmail.fr>
Committer
GitHub <noreply@github.com>
Date

Message

fix(gcloud): source `path.zsh.inc` always (#11901)

Diff

 1diff --git a/plugins/gcloud/gcloud.plugin.zsh b/plugins/gcloud/gcloud.plugin.zsh
 2index 5c57302d36d9ffd891c0a6f3d72fa79d8553d7a3..9a4213aaf14d5dc468ae71844bf3d737c37b6e5b 100644
 3--- a/plugins/gcloud/gcloud.plugin.zsh
 4+++ b/plugins/gcloud/gcloud.plugin.zsh
 5@@ -29,11 +29,9 @@ if [[ -z "${CLOUDSDK_HOME}" ]]; then
 6 fi
 7 
 8 if (( ${+CLOUDSDK_HOME} )); then
 9-  # Only source this if gcloud isn't already on the path
10-  if (( ! $+commands[gcloud] )); then
11-    if [[ -f "${CLOUDSDK_HOME}/path.zsh.inc" ]]; then
12-      source "${CLOUDSDK_HOME}/path.zsh.inc"
13-    fi
14+  # Source path file
15+  if [[ -f "${CLOUDSDK_HOME}/path.zsh.inc" ]]; then
16+    source "${CLOUDSDK_HOME}/path.zsh.inc"
17   fi
18 
19   # Look for completion file in different paths