summaryrefslogtreecommitdiff
path: root/config/p10k-rainbow.zsh
diff options
context:
space:
mode:
authorRostyslav Sotnychenko <me@sota.sh>2019-12-16 20:21:23 +0300
committerRostyslav Sotnychenko <me@sota.sh>2019-12-16 20:21:23 +0300
commitcaea2c5b2a82dea18a0954828ec45701a31d6390 (patch)
tree4e7797b111a426570a96052a45d5a766dd831a26 /config/p10k-rainbow.zsh
parent541646c12e51d5b22f74e530c4ee6c65a6c2ee43 (diff)
Add prompt for Google Cloud application credentials
Diffstat (limited to 'config/p10k-rainbow.zsh')
-rw-r--r--config/p10k-rainbow.zsh18
1 files changed, 18 insertions, 0 deletions
diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh
index 9419b4c5..1e55a530 100644
--- a/config/p10k-rainbow.zsh
+++ b/config/p10k-rainbow.zsh
@@ -68,6 +68,7 @@
# 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/)
+ # gcloud_app # google cloud application credentials (https://cloud.google.com/docs/authentication/getting-started#setting_the_environment_variable)
context # user@hostname
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
ranger # ranger shell (https://github.com/ranger/ranger)
@@ -810,6 +811,23 @@
# Custom icon.
# typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐'
+ ##########[ gcloud_app: google cloud application credentials (https://cloud.google.com/docs/authentication/getting-started#setting_the_environment_variable) ]###########
+ # Google cloud color.
+ typeset -g POWERLEVEL9K_GCLOUD_APP_FOREGROUND=32
+
+ # Google cloud format. Uncomment POWERLEVEL9K_GCLOUD_APP_CONTENT_EXPANSION and edit its value if the
+ # default is too verbose.
+ #
+ # P9K_GCLOUD_APP_EMAIL: `.client_email` field of keyfile
+ # P9K_GCLOUD_APP_ACCOUNT_TYPE: `.type` field of keyfile
+ # P9K_GCLOUD_APP_ACCOUNT_TYPE_SHORT: `sa` if `type=service_account`, empty otherwise
+ # ${VARIABLE//\%/%%}: ${VARIABLE} with all occurences of '%' replaced with '%%'.
+ #
+ # typeset -g POWERLEVEL9K_GCLOUD_APP_CONTENT_EXPANSION='${P9K_GCLOUD_APP_ACCOUNT_TYPE_SHORT//\%/%%}${P9K_GCLOUD_APP_EMAIL//\%/%%}'
+
+ # Custom icon.
+ # typeset -g POWERLEVEL9K_GCLOUD_APP_VISUAL_IDENTIFIER_EXPANSION='⭐'
+
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
# different contexts.