Skip to content

Instantly share code, notes, and snippets.

@PeterHajdu
Created September 21, 2010 17:20
Show Gist options
  • Save PeterHajdu/590077 to your computer and use it in GitHub Desktop.
Save PeterHajdu/590077 to your computer and use it in GitHub Desktop.
Awesome smiley prompt for bash.
export PS1="\[\e[34m\]\w \[\e[0m\]\`
if [ \$? = 0 ]; then
echo \[\e[32m\]\A \:\)\[\e[0m\];
else
echo \[\e[31m\]\A \:\(\[\e[0m\];
fi\` "
@PeterHajdu
Copy link
Author

Just put this code to your ~/.bashrc and enjoy the face of your coworkers. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment