aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Ysewyn <Tim.Ysewyn@me.com>2021-04-04 19:59:17 +0300
committerGitHub <noreply@github.com>2021-04-04 19:59:17 +0300
commit8dc91004cb0a46898856bfac5fa66b1019824408 (patch)
tree01e5de5bf53f4d2a25a189db30e53b96516f897a
parent8b2aab74d446d631ff6e85ceb7ab827a38932650 (diff)
Fix gcloud CLI (#1342)
This reverts #1324 (d3de2e5).
-rw-r--r--internal/p10k.zsh5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 8baf944e..8367e501 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4504,9 +4504,8 @@ _p9k_gcloud_prefetch() {
P9K_GCLOUD_CONFIGURATION=$_p9k__ret
if ! _p9k_cache_stat_get $0 ~/.config/gcloud/configurations/config_$P9K_GCLOUD_CONFIGURATION; then
local pair account project_id
- pair="$(gcloud config configurations list $P9K_GCLOUD_CONFIGURATION \
- --format=$'value[separator="\1"](properties.core.account,properties.core.project)' \
- --filter=is_active:true)"
+ pair="$(gcloud config configurations describe $P9K_GCLOUD_CONFIGURATION \
+ --format=$'value[separator="\1"](properties.core.account,properties.core.project)')"
(( ! $? )) && IFS=$'\1' read account project_id <<<$pair
_p9k_cache_stat_set "$account" "$project_id"
fi