Friday, June 14, 2013

Cool Cowsay in your shell

Do you want cool cowsay as this when you open your shell???



If your answer if yes. Follow the steps below:

1) Install cowsay.
    You can do it by typing: sudo apt-get install cowsay 

2) Add following lines to your ~/.bashrc

if [ -x /usr/games/cowsay -a -x /usr/games/fortune ]; then
command fortune -a | fmt -80 -s | $(shuf -n 1 -e cowsay cowthink) -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n
fi

Have Fun!

No comments:

Post a Comment