Skip to content

Instantly share code, notes, and snippets.

@florianpasteur
Created September 10, 2020 08:26
Show Gist options
  • Save florianpasteur/135c122224e05b72b2443973d252ac6b to your computer and use it in GitHub Desktop.
Save florianpasteur/135c122224e05b72b2443973d252ac6b to your computer and use it in GitHub Desktop.
PS1
PS1="\[\033[01;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[01;32m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\h'; fi)\[\033[01;34m\] \w \$\[\033[00m\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment