Unverified Commit 91cd5341 authored by Marc-Antoine Godde's avatar Marc-Antoine Godde Committed by GitHub

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

parent cdd7dab5
...@@ -29,11 +29,9 @@ if [[ -z "${CLOUDSDK_HOME}" ]]; then ...@@ -29,11 +29,9 @@ 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment