[solved]Mint-fortunes on konsole gone
Posted: Wed Oct 10, 2012 8:39 am
Err.. I accidently make an upgrade on bash preferences and then I lost mint-fortune at konsole startup..
I follow the post here and it works, but not as good as it was before..
I add this code to /etc/bash.bashrc
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)
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
dir='/usr/share/cowsay/cows/'
file=`/bin/ls -1 "$dir" | sort --random-sort | head -1`
cow=$(echo "$file" | sed -e "s/\.cow//")
/usr/games/fortune -a | cowsay -f $cow