summaryrefslogtreecommitdiff
path: root/config/p10k-lean.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-12-06 01:53:30 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-12-06 01:53:30 +0300
commita8f9527079e15588af3e98f94f3c6a427664ddce (patch)
tree1ef8328fe1cb4f790420327bd0ddf287f37ba3c9 /config/p10k-lean.zsh
parent5fc38b05869b040c2e85234359a86312c3f339c9 (diff)
add gcloud prompt segment; fixes #366
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index e9d560f8..4a9e5ce1 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -67,6 +67,7 @@
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
# aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
# azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
+ # gcloud # google cloud acccount and project (https://cloud.google.com/)
context # user@hostname
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
ranger # ranger shell (https://github.com/ranger/ranger)
@@ -818,6 +819,17 @@
# Custom icon.
# typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'
+ ##########[ gcloud: google cloud acccount and project (https://cloud.google.com/) ]###########
+ # 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 %%.
+ # typeset -g POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION='${P9K_GCLOUD_ACCOUNT//\%/%%}:${P9K_GCLOUD_PROJECT//\%/%%}'
+
+ # Custom icon.
+ # typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐'
+
###############################[ public_ip: public IP address ]###############################
# Public IP color.
typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=94