Last active
November 12, 2018 07:44
-
-
Save ronaldsuwandi/1442f5e926a070a3739117516fb1b379 to your computer and use it in GitHub Desktop.
Personal bash 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
alias ls='ls -FGH' | |
alias ll='ls -l' | |
export JAVA_HOME=/Libary/Java/Home | |
kubecontext() | |
{ | |
if [[ -e ~/.kube/config && $(type -P kubectl 2>/dev/null) ]]; then | |
echo -n " [$(kubectl config current-context)]" | |
else | |
echo -n "" | |
fi | |
} | |
export PS1="\w\$(kubecontext) ☕️ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment