diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-03-21 14:25:05 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-03-21 14:25:05 +0300 |
commit | 4c3c5487f99746cbc9b5370e26d504ee5ecccb5f (patch) | |
tree | 3aaef3ee340b648a4a74fdaeeba2197de176e0ed /internal/p10k.zsh | |
parent | e60aa8ad7ddb3cee71ef13e35a165228ed62423c (diff) | |
parent | ba26a1a076b1c40ff8aa7ae363d75f3f33c9cec8 (diff) |
Merge branch 'GCloud-Segment' of https://github.com/Jeklah/powerlevel10k into gcloud
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 9b3cc3f7..3dbf02bf 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4324,7 +4324,7 @@ prompt_gcloud() { _p9k_read_word ~/.config/gcloud/active_config || return if ! _p9k_cache_stat_get $0 ~/.config/gcloud/configurations/config_$_p9k__ret; then # TODO: Use `gcloud config configurations list` instead. - _p9k_cache_stat_set "$(gcloud config get-value account 2>/dev/null)" "$(gcloud config get-value project 2>/dev/null)" + _p9k_cache_stat_set "$(gcloud config get-value account 2>/dev/null)" "$(gcloud projects describe `gcloud config get-value project 2>/dev/null` | grep name | cut -d ":" -f 2 2>/dev/null)" fi [[ -n $_p9k__cache_val[1] || -n $_p9k__cache_val[2] ]] || return P9K_GCLOUD_ACCOUNT=$_p9k__cache_val[1] |