use p9k print_icon for kubecontext segment

This commit is contained in:
Jason Hutchinson 2017-05-26 13:27:17 -05:00
commit c11c3a55de
2 changed files with 5 additions and 1 deletions

View file

@ -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
}