It was part of BSD games and has been included in virtual all linux distros. Adding your private fortune database is pretty trivial, no more complex than a YML file: your fortunes are (multi)lines of text separated by a % line, and you need to add a .dat file with the command
strfile -c % dinner dinner.dat
after which the command
fortune dinner
achieves essentially the same.
On ubuntu
sudo apt install fortunes
and you can view some samples in /usr/share/games/fortunes
some of which are great fun.
What about the good old fortune command?
It was part of BSD games and has been included in virtual all linux distros. Adding your private fortune database is pretty trivial, no more complex than a YML file: your fortunes are (multi)lines of text separated by a % line, and you need to add a .dat file with the command
strfile -c % dinner dinner.dat
after which the command
fortune dinner
achieves essentially the same.
On ubuntu
sudo apt install fortunes
and you can view some samples in /usr/share/games/fortunes
some of which are great fun.