mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-25 00:21:58 +00:00
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.
This commit is contained in:
parent
58f5470cd9
commit
d3de2e558c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue