mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
use p9k print_icon for kubecontext segment
This commit is contained in:
parent
d8d6c752fd
commit
c11c3a55de
2 changed files with 5 additions and 1 deletions
|
@ -84,6 +84,7 @@ case $POWERLEVEL9K_MODE in
|
|||
LOCK_ICON $'\UE138' #
|
||||
EXECUTION_TIME_ICON $'\UE89C' #
|
||||
SSH_ICON '(ssh)'
|
||||
KUBERNETES_ICON $'\U2388' # ⎈
|
||||
)
|
||||
;;
|
||||
'awesome-fontconfig')
|
||||
|
@ -152,6 +153,7 @@ case $POWERLEVEL9K_MODE in
|
|||
LOCK_ICON $'\UE138' #
|
||||
EXECUTION_TIME_ICON $'\uF253'
|
||||
SSH_ICON '(ssh)'
|
||||
KUBERNETES_ICON $'\U2388' # ⎈
|
||||
)
|
||||
;;
|
||||
'nerdfont-complete'|'nerdfont-fontconfig')
|
||||
|
@ -220,6 +222,7 @@ case $POWERLEVEL9K_MODE in
|
|||
LOCK_ICON $'\UF023' #
|
||||
EXECUTION_TIME_ICON $'\uF252' #
|
||||
SSH_ICON $'\uF489' #
|
||||
KUBERNETES_ICON $'\U2388' # ⎈
|
||||
)
|
||||
;;
|
||||
*)
|
||||
|
@ -288,6 +291,7 @@ case $POWERLEVEL9K_MODE in
|
|||
LOCK_ICON $'\UE0A2'
|
||||
EXECUTION_TIME_ICON 'Dur'
|
||||
SSH_ICON '(ssh)'
|
||||
KUBERNETES_ICON $'\U2388' # ⎈
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1362,7 +1362,7 @@ prompt_kubecontext() {
|
|||
local k8s_namespace=$(kubectl config get-contexts --no-headers | grep '*' | awk '{print $5}')
|
||||
# Get the current Kuberenetes context
|
||||
local k8s_context=$(kubectl config current-context)
|
||||
"$1_prompt_segment" "$0" "$2" "magenta" "white" "$k8s_context/$k8s_namespace \u2388"
|
||||
"$1_prompt_segment" "$0" "$2" "magenta" "white" "$k8s_context/$k8s_namespace" "KUBERNETES_ICON"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue