Skip to content

Instantly share code, notes, and snippets.

@jpweber
Created October 30, 2017 18:50
Show Gist options
  • Select an option

  • Save jpweber/a3fc1121abf41ab176af88cc5d1e3c64 to your computer and use it in GitHub Desktop.

Select an option

Save jpweber/a3fc1121abf41ab176af88cc5d1e3c64 to your computer and use it in GitHub Desktop.
right side fish prompt with kubctl context name
function fish_right_prompt
set -l k8s_color (set_color purple)
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