From 53fd191d10fae30260329cab8b441ef058e6e8bc Mon Sep 17 00:00:00 2001 From: Tim Ysewyn Date: Sun, 4 Apr 2021 16:42:10 +0200 Subject: [PATCH] Removed fallback Assumed `gcloud config configurations list [configuration]` was working before, which is not the case. --- internal/p10k.zsh | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 38dbfff1..924f7d03 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4505,9 +4505,6 @@ _p9k_gcloud_prefetch() { if ! _p9k_cache_stat_get $0 ~/.config/gcloud/configurations/config_$P9K_GCLOUD_CONFIGURATION; then local pair account project_id pair="$(gcloud config configurations list --configuration $P9K_GCLOUD_CONFIGURATION \ - --format=$'value[separator="\1"](properties.core.account,properties.core.project)' \ - --filter=is_active:true 2>/dev/null)" - (( $? )) && pair="$(gcloud config configurations list $P9K_GCLOUD_CONFIGURATION \ --format=$'value[separator="\1"](properties.core.account,properties.core.project)' \ --filter=is_active:true)" (( ! $? )) && IFS=$'\1' read account project_id <<<$pair