Page 1 of 1

[solved]Mint-fortunes on konsole gone

Posted: Wed Oct 10, 2012 8:39 am
by lahirdenganselamat
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

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
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)

Re: Mint-fortunes on konsole gone

Posted: Wed Oct 10, 2012 1:36 pm
by sagirfahmid3
Try my way, works flawlessly on Debian, Ubuntu, and Mint.
http://forums.linuxmint.com/viewtopic.php?f=42&t=107877

Re: Mint-fortunes on konsole gone

Posted: Wed Oct 10, 2012 11:38 pm
by lahirdenganselamat
ah,, great.. thanks sagirfahmid3 :D It explained a lot :D

Re: [solved]Mint-fortunes on konsole gone

Posted: Thu Oct 11, 2012 1:18 am
by sagirfahmid3
Okie no problem! Spread the word lol, Ubuntu and Mint and even Debian doesn't come with these enabled unfortunately...