Created
October 11, 2016 13:45
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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