Created
September 21, 2013 07:04
-
-
Save yuryu/6648011 to your computer and use it in GitHub Desktop.
Cute prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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