-
-
Save IuryAlves/4178677885609cb60e5ffd5336f65d51 to your computer and use it in GitHub Desktop.
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
prompt_kubectl() { | |
currentCluster=$(kubectx -c 2>/dev/null) | |
currentNamespace=$(kubens -c 2>/dev/null) | |
if test -n "$currentCluster"; then | |
prompt_segment yellow black "kubernetes($currentCluster:$currentNamespace)" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment