Skip to content

Instantly share code, notes, and snippets.

@yuryu
Created September 21, 2013 07:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuryu/6648011 to your computer and use it in GitHub Desktop.
Save yuryu/6648011 to your computer and use it in GitHub Desktop.
Cute prompt
# PS1
function ps_exit() {
a=$?
if [ $a -ne 0 ]; then
echo "/(T_T)\\"
else
echo "\\(^o^)/"
fi
exit $a;
}
PS_EXIT="\$(ps_exit)"
PS1="[\t \u@\h \W ${PS_EXIT}]\\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment