Created
October 30, 2017 18:50
-
-
Save jpweber/a3fc1121abf41ab176af88cc5d1e3c64 to your computer and use it in GitHub Desktop.
right side fish prompt with kubctl context name
This file contains hidden or 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 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