Skip to content

Instantly share code, notes, and snippets.

@alexgottscha
Created October 29, 2014 23:15
Show Gist options
  • Save alexgottscha/58555b0174abee06d980 to your computer and use it in GitHub Desktop.
Save alexgottscha/58555b0174abee06d980 to your computer and use it in GitHub Desktop.
Smiley prompt
BLACK="\[\033[0;30m\]"
BLACKBOLD="\[\033[1;30m\]"
RED="\[\033[0;31m\]"
REDBOLD="\[\033[1;31m\]"
GREEN="\[\033[0;32m\]"
GREENBOLD="\[\033[1;32m\]"
YELLOW="\[\033[0;33m\]"
YELLOWBOLD="\[\033[1;33m\]"
BLUE="\[\033[0;34m\]"
BLUEBOLD="\[\033[1;34m\]"
PURPLE="\[\033[0;35m\]"
PURPLEBOLD="\[\033[1;35m\]"
CYAN="\[\033[0;36m\]"
CYANBOLD="\[\033[1;36m\]"
WHITE="\[\033[0;37m\]"
WHITEBOLD="\[\033[1;37m\]"
NORMAL="\[\033[0m\]"
RESET="\[\017\]"
#SMILEY="${GREENBOLD}:-)${NORMAL}"
#FROWNY="${REDBOLD}:-(${NORMAL}"
SMILEY='😊 '
FROWNY='😡 '
EMOTE="if [ \$? -eq 0 ]; then echo \"${SMILEY}\"; else echo \"${FROWNY}\"; fi"
export PS1="\n\u@\h:\w\n\$(${EMOTE}) \\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment