11/01/2006
Some links about shells
A small introduction to shells by Adam Spiers.
And if you wonder how that smiley “:) fishsticks$
” on the prompt of user mendel appears:
Just edit your bashrc, add this line somewhere:
smiley () { if [ $? == 0 ]; then echo ':)';else echo ':(';fi; }
and then change your PS1 line to include this:
\$(smiley)
in the beggining…so that it looks somewhat like this:
PS1="\$(smiley) \[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] "
It’s somewhat funny…
Filed by kargig at 12:57 under General,Linux
No Comments | 2,778 views