mirror of
https://github.com/romkatv/powerlevel10k
synced 2025-02-28 08:50:37 +00:00
parent
8b2aab74d4
commit
8dc91004cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user