diff options
author | Marc-Antoine Godde <marc-antoine.godde@hotmail.fr> | 2023-09-20 12:09:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 11:09:46 +0100 |
commit | 91cd5341b9e682bf1c1be4a4051249cffdab7943 (patch) | |
tree | 85b3a64c7f524569b7e8f93181713e920394263d /plugins | |
parent | cdd7dab5db4c668b962f908b57e244aa1ff4b574 (diff) | |
download | zsh-91cd5341b9e682bf1c1be4a4051249cffdab7943.tar.gz zsh-91cd5341b9e682bf1c1be4a4051249cffdab7943.tar.bz2 zsh-91cd5341b9e682bf1c1be4a4051249cffdab7943.zip |
fix(gcloud): source `path.zsh.inc` always (#11901)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gcloud/gcloud.plugin.zsh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/gcloud/gcloud.plugin.zsh b/plugins/gcloud/gcloud.plugin.zsh index 5c57302d3..9a4213aaf 100644 --- a/plugins/gcloud/gcloud.plugin.zsh +++ b/plugins/gcloud/gcloud.plugin.zsh @@ -29,11 +29,9 @@ if [[ -z "${CLOUDSDK_HOME}" ]]; then fi if (( ${+CLOUDSDK_HOME} )); then - # Only source this if gcloud isn't already on the path - if (( ! $+commands[gcloud] )); then - if [[ -f "${CLOUDSDK_HOME}/path.zsh.inc" ]]; then - source "${CLOUDSDK_HOME}/path.zsh.inc" - fi + # Source path file + if [[ -f "${CLOUDSDK_HOME}/path.zsh.inc" ]]; then + source "${CLOUDSDK_HOME}/path.zsh.inc" fi # Look for completion file in different paths |