Skip to content

Instantly share code, notes, and snippets.

@mgoodness
Created October 11, 2016 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mgoodness/2f969023c36d78e10caf4d63233fb331 to your computer and use it in GitHub Desktop.
Save mgoodness/2f969023c36d78e10caf4d63233fb331 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment