MikeVaughanG
March 4th, 2010, 09:00 PM
I found a 'command' online that, when you type a bad command it gives you a smiley face, and when you type a good command it gives you a sad face.
PS1="\`if [ \$? = 0 ]; then echo \[\e[33m\]^_^\[\e[0m\]; else echo \[\e[31m\]O_O\[\e[0m\]; fi\`[\u@\h:\w]\\$ "
My question is..
Is there a way to get terminal to open up with code already done?
So when I opened terminal it already gve me the :( or :)?
Thanks for any help. You guys are always helpful..
PS1="\`if [ \$? = 0 ]; then echo \[\e[33m\]^_^\[\e[0m\]; else echo \[\e[31m\]O_O\[\e[0m\]; fi\`[\u@\h:\w]\\$ "
My question is..
Is there a way to get terminal to open up with code already done?
So when I opened terminal it already gve me the :( or :)?
Thanks for any help. You guys are always helpful..