diff options
author | hayas1 <h4ystack@gmail.com> | 2022-09-23 14:54:49 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2022-09-23 15:34:57 +0300 |
commit | 957249a95c27c430aa55b55c0f4df9f5ced2bb39 (patch) | |
tree | f69268dc0662ba8f869e18c241cf60d64373436e /internal | |
parent | 4bbb198a606b69dfb2d86ac33686e3d41f6d0141 (diff) |
Fix gcloud config directory
Diffstat (limited to 'internal')
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index cf0c7f21..17e9bc89 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4647,9 +4647,9 @@ _p9k_gcloud_prefetch() { # P9K_GCLOUD_PROJECT is deprecated; it's always equal to P9K_GCLOUD_PROJECT_ID unset P9K_GCLOUD_CONFIGURATION P9K_GCLOUD_ACCOUNT P9K_GCLOUD_PROJECT P9K_GCLOUD_PROJECT_ID P9K_GCLOUD_PROJECT_NAME (( $+commands[gcloud] )) || return - _p9k_read_word ~/.config/gcloud/active_config || return + _p9k_read_word ${CLOUDSDK_CONFIG:-~/.config/gcloud}/active_config || return P9K_GCLOUD_CONFIGURATION=$_p9k__ret - if ! _p9k_cache_stat_get $0 ~/.config/gcloud/configurations/config_$P9K_GCLOUD_CONFIGURATION; then + if ! _p9k_cache_stat_get $0 ${CLOUDSDK_CONFIG:-~/.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)')" |