I follow the post here and it works, but not as good as it was before..
I add this code to /etc/bash.bashrc
- Code: Select all
file=`/bin/ls -1 "$dir" | sort --random-sort | head -1`
cow=$(echo "$file" | sed -e "s/\.cow//")
/usr/games/fortune -a | cowsay -f $cow
Will it be back if I load the default bash.bash.rc file? (btw, i dont have the default file, it will be great if anyone can share)