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

master
Marc-Antoine Godde 3 years ago committed by GitHub
parent cdd7dab5db
commit 91cd5341b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      plugins/gcloud/gcloud.plugin.zsh

@ -29,12 +29,10 @@ if [[ -z "${CLOUDSDK_HOME}" ]]; then
fi fi
if (( ${+CLOUDSDK_HOME} )); then if (( ${+CLOUDSDK_HOME} )); then
# Only source this if gcloud isn't already on the path # Source path file
if (( ! $+commands[gcloud] )); then
if [[ -f "${CLOUDSDK_HOME}/path.zsh.inc" ]]; then if [[ -f "${CLOUDSDK_HOME}/path.zsh.inc" ]]; then
source "${CLOUDSDK_HOME}/path.zsh.inc" source "${CLOUDSDK_HOME}/path.zsh.inc"
fi fi
fi
# Look for completion file in different paths # Look for completion file in different paths
for comp_file ( for comp_file (

Loading…
Cancel
Save