From d3de2e558cc12edc012a868ef11cd0dfb6d03a68 Mon Sep 17 00:00:00 2001 From: Ramon Lucas Date: Sat, 27 Mar 2021 05:16:50 -0300 Subject: [PATCH] Sets the filter for the current gcloud profile (#1324) When you have multiple profiles set up, you should only search for what is currently active. --- internal/p10k.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 17c3308b..e5f8be76 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4496,7 +4496,8 @@ _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 describe $P9K_GCLOUD_CONFIGURATION \ - --format=$'value[separator="\1"](properties.core.account,properties.core.project)')" + --format=$'value[separator="\1"](properties.core.account,properties.core.project)' \ + --filter=is_active:true)" (( ! $? )) && IFS=$'\1' read account project_id <<<$pair _p9k_cache_stat_set "$account" "$project_id" fi