|
|
@ -770,32 +770,46 @@
|
|
|
|
# Custom icon.
|
|
|
|
# Custom icon.
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
|
|
##########[ gcloud: google cloud acccount and project (https://cloud.google.com/) ]###########
|
|
|
|
#[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]#
|
|
|
|
# Google cloud color.
|
|
|
|
# Google application credentials classes for the purpose of using different colors, icons and
|
|
|
|
typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=32
|
|
|
|
# expansions with different credentials.
|
|
|
|
|
|
|
|
|
|
|
|
# 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`
|
|
|
|
# POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES is an array with even number of elements. The first
|
|
|
|
# P9K_GCLOUD_PROJECT: the output of `gcloud config get-value project`
|
|
|
|
# element in each pair defines a pattern against which the current kubernetes context gets
|
|
|
|
# ${VARIABLE//\%/%%}: ${VARIABLE} with all occurences of '%' replaced with '%%'.
|
|
|
|
# matched. More specifically, it's P9K_CONTENT prior to the application of context expansion
|
|
|
|
|
|
|
|
# (see below) that gets matched. If you unset all POWERLEVEL9K_GOOGLE_APP_CRED_*CONTENT_EXPANSION
|
|
|
|
|
|
|
|
# parameters, you'll see this value in your prompt. The second element of each pair in
|
|
|
|
|
|
|
|
# POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES defines the context class. Patterns are tried in order.
|
|
|
|
|
|
|
|
# The first match wins.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# typeset -g POWERLEVEL9K_GCLOUD_CONTENT_EXPANSION='${P9K_GCLOUD_ACCOUNT//\%/%%}:${P9K_GCLOUD_PROJECT//\%/%%}'
|
|
|
|
# For example, given these settings:
|
|
|
|
|
|
|
|
#
|
|
|
|
# Custom icon.
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
|
|
|
|
# typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# '*:*prod*:*' PROD
|
|
|
|
|
|
|
|
# '*:*test*:*' TEST
|
|
|
|
#[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]#
|
|
|
|
# '*' DEFAULT)
|
|
|
|
# Default google application credentials color.
|
|
|
|
#
|
|
|
|
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_FOREGROUND=32
|
|
|
|
# If your current Google application credentials is "service_account deathray-testing x@y.com",
|
|
|
|
# Google application credentials color for service accounts.
|
|
|
|
# its class is TEST because it doesn't match the pattern '* *prod* *' but does match '* *test* *'.
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SERVICE_ACCOUNT_FOREGROUND=32
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can define different colors, icons and content expansions for different classes:
|
|
|
|
# Google application credentials format. Uncomment POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION
|
|
|
|
#
|
|
|
|
# and edit its value if the default is too verbose. You can use the following parameters in the
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_FOREGROUND=28
|
|
|
|
# expansion. Each of them corresponds to one of the fields in the JSON file pointed to by
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# GOOGLE_APPLICATION_CREDENTIALS.
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_CONTENT_EXPANSION='$P9K_GOOGLE_APP_CRED_PROJECT_ID'
|
|
|
|
|
|
|
|
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
|
|
|
|
|
|
|
|
# '*:*prod*:*' PROD # These values are examples that are unlikely
|
|
|
|
|
|
|
|
# '*:*test*:*' TEST # to match your needs. Customize them as needed.
|
|
|
|
|
|
|
|
'*' DEFAULT)
|
|
|
|
|
|
|
|
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=32
|
|
|
|
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by
|
|
|
|
|
|
|
|
# google_app_cred segment. Parameter expansions are very flexible and fast, too. See reference:
|
|
|
|
|
|
|
|
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can use the following parameters in the expansion. Each of them corresponds to one of the
|
|
|
|
|
|
|
|
# fields in the JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Parameter | JSON key file field
|
|
|
|
# Parameter | JSON key file field
|
|
|
|
# ---------------------------------+---------------
|
|
|
|
# ---------------------------------+---------------
|
|
|
@ -803,18 +817,8 @@
|
|
|
|
# P9K_GOOGLE_APP_CRED_PROJECT_ID | project_id
|
|
|
|
# P9K_GOOGLE_APP_CRED_PROJECT_ID | project_id
|
|
|
|
# P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email
|
|
|
|
# P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Note: ${VARIABLE%%.*} expands to ${VARIABLE} up to but not including the first period ('.').
|
|
|
|
# Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurences of '%' replaced by '%%'.
|
|
|
|
# Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurences of '%' replaced with '%%'.
|
|
|
|
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}'
|
|
|
|
#
|
|
|
|
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION='${${P9K_GOOGLE_APP_CRED_CLIENT_EMAIL%%.*}//\%/%%}'
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can also define content expansion specifically for service accounts by defining
|
|
|
|
|
|
|
|
# POWERLEVEL9K_GOOGLE_APP_CRED_SERVICE_ACCOUNT_CONTENT_EXPANSION.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Default google application credentials icon.
|
|
|
|
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
# Google application credentials icon for service accounts.
|
|
|
|
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SERVICE_ACCOUNT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
|
|
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
|
|
|
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
|
|
|
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
|
|
|