Skip to content

Instantly share code, notes, and snippets.

@ronaldsuwandi
Last active November 12, 2018 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronaldsuwandi/1442f5e926a070a3739117516fb1b379 to your computer and use it in GitHub Desktop.
Save ronaldsuwandi/1442f5e926a070a3739117516fb1b379 to your computer and use it in GitHub Desktop.
Personal bash prompt
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