mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
parent
8b2aab74d4
commit
8dc91004cb
1 changed files with 2 additions and 3 deletions
|
@ -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 a new issue