1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-25 00:21:58 +00:00

Fix gcloud CLI (#1342)

This reverts #1324 (d3de2e5).
This commit is contained in:
Tim Ysewyn 2021-04-04 18:59:17 +02:00 committed by GitHub
parent 8b2aab74d4
commit 8dc91004cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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