1
0
Fork 0

[zsh] Introduce a few more p10k classes / dir settings

main
Sebastian Schulze 2020-06-22 17:47:03 +02:00
parent c1b652bc24
commit 6ef47ad231
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 11 additions and 4 deletions

View File

@ -331,7 +331,12 @@
# typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=103
# typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=39
#
# typeset -g POWERLEVEL9K_DIR_CLASSES=()
typeset -g POWERLEVEL9K_DIR_CLASSES=(
'~/Documents(|/*)' WORK ''
'~/Code(|/*)' CODE '華'
'~(|/*)' HOME ''
'*' DEFAULT ''
)
#####################################[ vcs: git status ]######################################
# Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon.
@ -804,7 +809,7 @@
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Show kubecontext only when the the command you are typing invokes one of these tools.
# Tip: Remove the next line to always show kubecontext.
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc'
# typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc'
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
# different contexts.
@ -834,11 +839,13 @@
# typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(
'*prod*' PRODUCTION
'*stage*' STAGING
'*stage*' STAGING
'*beta*' STAGING
'*test*' TEST
'*' DEFAULT)
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=134
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=75
typeset -g POWERLEVEL9K_KUBECONTEXT_STAGING_FOREGROUND=215
typeset -g POWERLEVEL9K_KUBECONTEXT_PRODUCTION_FOREGROUND=197
# typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
# Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext