Skip to content

Instantly share code, notes, and snippets.

@ronaldsuwandi
Last active November 12, 2018 07:44
Show Gist options
  • Select an option

  • Save ronaldsuwandi/1442f5e926a070a3739117516fb1b379 to your computer and use it in GitHub Desktop.

Select an option

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
if [[ -e ~/.kube/config && $(type -P kubectl 2>/dev/null) ]]; then
CURRENT_CONTEXT=" [$(kubectl config current-context)]"
else
CURRENT_CONTEXT=""
fi
export PS1="\w${CURRENT_CONTEXT} ☕️ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment