Skip to content

Instantly share code, notes, and snippets.

@dyurk
Last active December 23, 2015 17:49
Show Gist options
  • Save dyurk/6671252 to your computer and use it in GitHub Desktop.
Save dyurk/6671252 to your computer and use it in GitHub Desktop.
Updated prompt
SYM=`echo -e "\xE4\x98\xA3"`
PS1="\n\$(if [[ \$? == 0 ]]; then echo \"\[\033[0;32m\]\"; else echo \"\[\033[0;31m\]\"; fi)$SYM [ \u@\[\e[1;36m\]\H\[\e[m\]\033[0;32m\]\]] [ \w ] [ \T ]\n\[\033[0m\]$SYM "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment