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.
brew install fortune
in Terminal.
apt-get install fortune
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
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
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:
custom_fortunes
directory or the setup_custom_fortunes.sh
script.docker build -t ubuntu_fortune:latest .
docker run -it ubuntu_fortune:latest /bin/bash
/fortune
. The prompt will look something like this:
root@0be2c9cb3117:/fortune# ls
custom_fortunes setup_custom_fortunes.sh
./setup_custom_fortunes.sh
to set up the custom fortunes on the host.exit
at the prompt to return to your local terminal.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
... ... add more