fortune

A simple Unix program that displays a random quote from a list of quotations.
git clone git://evanalba.com/fortune
Log | Files | Refs | README

README.md (1849B)


      1 Here lies a Fortune file which can be used with a simple Unix program called Fortune.
      2 
      3 Requirements
      4 ------------
      5 In order to use this program you will need to see if your operating system supports downloading the fortune unix program.
      6 
      7 Installation
      8 ------------
      9 MacOS:
     10 1. brew install fortune (You can get the brew command by downloading homebrew, a macOS package manager. https://brew.sh/)
     11 2. If no evanalba.dat file exists in the fortune directory you have downloaded, then:
     12 % strfile fortunes/evanalba
     13 3. % rm *.dat /opt/homebrew/Cellar/fortune/9708/share/games/fortunes
     14 to remove all the existing .dat files of the Fortune program. If you ever want the existing fortune files in your directory to be included, just:
     15 % strfile /opt/homebrew/Cellar/fortune/9708/share/games/(Name of fortune file to create .dat file for it)
     16 Example: % strfile /opt/homebrew/Cellar/fortune/9708/share/games/startrek
     17 4. % cp fortune/evanalba fortune/evanalba.dat /opt/homebrew/Cellar/fortune/9708/share/games/fortunes
     18 5. Now, enter the following command whenever you want to get a fortune:
     19 % fortune
     20 
     21 OpenBSD:
     22 1. If no evanalba.dat file exists in the fortune directory you have downloaded, then:
     23 % strfile fortunes/evanalba
     24 2. % rm *.dat /usr/share/games/fortune/*
     25 to remove all the existing .dat files of the Fortune program. If you ever want the existing fortune files in your directory to be included, just:
     26 % strfile /usr/share/games/fortune/(Name of fortune file to create .dat file for it)
     27 Example: % strfile /usr/share/games/fortune/startrek
     28 3. % cp fortune/evanalba fortune/evanalba.dat /usr/share/games/fortune/
     29 4. Now, enter the following command whenever you want to get a fortune:
     30 % fortune
     31 
     32 Linux-based Operating System:
     33 Follow the OpenBSD instructions and read the man pages on fortune to see where your fortune directory is located at in your system.