use p9k print_icon for kubecontext segment

pull/22/head
Jason Hutchinson 8 years ago
parent d8d6c752fd
commit c11c3a55de

@ -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…
Cancel
Save