Some links about shells

A small introduction to shells by Adam Spiers.

Bash now supports sockets

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…

No comments yet. Be the first.

Leave a reply