jpweber
7/25/2017 - 12:22 AM

Add the current Kubernetes context to the right-hand side of your Fish Shell prompt

Add the current Kubernetes context to the right-hand side of your Fish Shell prompt

function fish_right_prompt
  set -l k8s_color (set_color blue)
  set -l k8s_context (kubectl config current-context)

  echo -e -n -s $k8s_color "($k8s_context)"
end