heptocat / fortune

collection of fortune cookies to any imaginable topic
2 stars 6 forks source link

fortune

I love having FORTUNE(6) run on my login-shell and configuring cookies myself. I cannot find a non-personal collection of topic-specific fortune cookies. So here it is.

install fortune

on macOS

download

Clone repository, then run the setup_custom_fortunes.sh script. To remove custom fortunes of your choice simply delete the files from custom_fortunes. You might have to create the directory /usr/local/share/games/fortunes.

The script has been tested on

contributing

The point of this repo is for people to contribute. Add fitting quotes to a file of your choosing or create your own file. Add source when fitting. Fortune is meant to print "a random, hopefully interesting, adage" - (adage := a proverb or short statement expressing a general truth.)

Let's see what abstruse subtopics the internet will find. Quotes are separated by %. See https://wiki.archlinux.org/index.php/Fortune#Creating_custom_files

Docker container testing changes to the project (not required for use)

There is a Dockerfile in the repository that will assemble a lightweight Docker image with the latest version of Ubuntu, fortune, as well as a copy of the repository. This will allow you to run the project within a Docker container instead of your local computer, keeping your fortune setup separated from changes to the project that you may wish to test first.

To use this isolated test environment:

topics

Collection of fortune cookies to any imaginable topic, sorted in directories. Every directory has a [directory]-all. This is not meant to collect all subtopics, but as a file for all things that do not fit in a subtopic

films

society

computer

... ... add more