Skip to content

Instantly share code, notes, and snippets.

@jpweber
Forked from mgoodness/fish_right_prompt.fish
Created July 25, 2017 00:22
Show Gist options
  • Save jpweber/3b1e95a28109156adc88ad96eabccac9 to your computer and use it in GitHub Desktop.
Save jpweber/3b1e95a28109156adc88ad96eabccac9 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