Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I don't mind the idea of quotes when I load the Mint console, however the OEM text leaves much to be desired. I'd like to update the quote text with inspirational or otherwise useful quotes.

How would I go about doing that?

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

Editing Linux Mint fortunes! (Mint 13) has some good information for how to tweak what "fortunes" are displayed.

In specific, it appears they are stored in /usr/share/cowsay/cows (as plain text, preformatted) with .cow extension.

There's more information in the link.

share|improve this answer
add comment

Under Mint, there's a little script, mint-fortune, which is called at the end of /etc/bash.bashrc.

It's essentially a wrapper around the program fortune, which is the base program for printing fortunes, and the programs responsible for drawing the fortune-teller.

Unfortunately for you, the script does not accept arguments, so you'll have to remove it or comment it out in /etc/bash.bashrc, and write your own solution:

  • Either you want to keep the little animal (Yay!), and you'll have to write a modified version of mint-fortune

  • Or you simply use fortune

In either case, you write your fortune in a file with the appropriate format (apparently simply a text file where fortunes are separated by a % on a line) and call whatever makes you happy in your .bashrc.

share|improve this answer
1  
If you are writing your own fortunes file, see the man page for strfile(1) -- it creates the accompanying .dat file. –  hhaamu Jun 21 '12 at 20:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.