aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorÉverton Arruda <root@earruda.eti.br>2021-03-30 20:46:50 +0300
committerGitHub <noreply@github.com>2021-03-30 20:46:50 +0300
commit4d15cf977eb82ec127fd7ddfab281194765748e2 (patch)
tree306f2c07ba3f0870f75075798f0c287f53ebf936 /internal
parentaf86b53047ea6d6866dc5dae83eb219e691b9c76 (diff)
Get active gcloud profile using `list` command (#1331)
`gcloud config configure describe` command does not have `--filter` option. To filter the active profile using `--filter` it is necessary to use `gcloud config configure list` command
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index ea7b63c5..ed30454f 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4498,7 +4498,7 @@ _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 describe $P9K_GCLOUD_CONFIGURATION \
+ pair="$(gcloud config configurations list $P9K_GCLOUD_CONFIGURATION \
--format=$'value[separator="\1"](properties.core.account,properties.core.project)' \
--filter=is_active:true)"
(( ! $? )) && IFS=$'\1' read account project_id <<<$pair