From 339703e2b1b4c84d201ff50523e8ccf93811e932 Mon Sep 17 00:00:00 2001 From: romkatv Date: Fri, 6 Dec 2019 13:47:45 +0100 Subject: [PATCH] better commends for POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION --- config/p10k-classic.zsh | 9 +++++++-- config/p10k-lean.zsh | 9 +++++++-- config/p10k-rainbow.zsh | 9 +++++++-- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index a671a7a7..d032ef3d 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -766,8 +766,13 @@ # Google cloud color. typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=32 - # Google cloud format. Uncomment and edit the next line if the default is too verbose. - # Note: ${X//\%/%%} is the same as $X but with all occurences of % replaced with %%. + # Google cloud format. Uncomment POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION and edit its value if the + # default is too verbose. + # + # P9K_GCLOUD_ACCOUNT: the output of `gcloud config get-value account` + # P9K_GCLOUD_PROJECT: the output of `gcloud config get-value project` + # ${VARIABLE//\%/%%}: ${VARIABLE} with all occurences of '%' replaced with '%%'. + # # typeset -g POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION='${P9K_GCLOUD_ACCOUNT//\%/%%}:${P9K_GCLOUD_PROJECT//\%/%%}' # Custom icon. diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index 89f0a1b2..87c40923 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -823,8 +823,13 @@ # Google cloud color. typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=32 - # Google cloud format. Uncomment and edit the next line if the default is too verbose. - # Note: ${X//\%/%%} is the same as $X but with all occurences of % replaced with %%. + # Google cloud format. Uncomment POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION and edit its value if the + # default is too verbose. + # + # P9K_GCLOUD_ACCOUNT: the output of `gcloud config get-value account` + # P9K_GCLOUD_PROJECT: the output of `gcloud config get-value project` + # ${VARIABLE//\%/%%}: ${VARIABLE} with all occurences of '%' replaced with '%%'. + # # typeset -g POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION='${P9K_GCLOUD_ACCOUNT//\%/%%}:${P9K_GCLOUD_PROJECT//\%/%%}' # Custom icon. diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index a5da8174..27ec68ee 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -791,8 +791,13 @@ # typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7 # typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4 - # Google cloud format. Uncomment and edit the next line if the default is too verbose. - # Note: ${X//\%/%%} is the same as $X but with all occurences of % replaced with %%. + # Google cloud format. Uncomment POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION and edit its value if the + # default is too verbose. + # + # P9K_GCLOUD_ACCOUNT: the output of `gcloud config get-value account` + # P9K_GCLOUD_PROJECT: the output of `gcloud config get-value project` + # ${VARIABLE//\%/%%}: ${VARIABLE} with all occurences of '%' replaced with '%%'. + # # typeset -g POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION='${P9K_GCLOUD_ACCOUNT//\%/%%}:${P9K_GCLOUD_PROJECT//\%/%%}' # Custom icon.