whatisgithub

What is fortunes?

ruanyf/fortunes — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2021-08-13

342Audience · generalComplexity · 1/5DormantSetup · easy

In one sentence

A curated collection of fortune-cookie quote databases for the Unix `fortune` command, with a huge Chinese quotes set plus classical Tang and Song poetry.

Mindmap

mindmap
  root((repo))
    What it does
      Random quote databases
      Works with fortune CLI
      Chinese and English sets
    Tech stack
      Unix fortune tool
      Plain text databases
    Use cases
      Terminal startup quotes
      Chinese poetry reading
      Custom quote databases
    Audience
      Developers
      Sysadmins
      Chinese-speaking users
    Content
      5000 plus English quotes
      26000 Chinese quotes
      Tang and Song poems

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Show a random inspirational quote every time you open a new terminal window.

USE CASE 2

Read classical Tang or Song dynasty poems as part of your shell startup routine.

USE CASE 3

Build a custom fortune database by writing your own quotes and indexing them.

USE CASE 4

Mix and weight multiple quote databases to control how often each type of quote appears.

What is it built with?

Shell

How does it compare?

ruanyf/fortunesanthropics/anthropic-sdk-rubyfastlane/docs
Stars342342340
LanguageRubyHTML
Last pushed2021-08-132026-07-01
MaintenanceDormantActive
Setup difficultyeasyeasyeasy
Complexity1/52/51/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires installing the fortune package via your system's package manager, then copying the database files into place.

So what is it?

Fortune is a Unix command-line tool that displays a random quote or saying every time you run it. Instead of seeing the same message twice, it pulls from a database of thousands of quotations, so there's always something new. This repository is a curated collection of fortune databases, especially tailored for Chinese-speaking users. The repository contains five separate databases you can use. There's a general English quotes collection with over 5,000 items, a much larger Chinese quotes database with nearly 26,000 entries, and three specialized Chinese collections: classical poems from the Tang Dynasty (313 poems), poems from the Song Dynasty (95 poems), and a collection of diet-related proverbs (123 items). You install the tool itself through your system's package manager, then copy these database files to a standard location on your computer. Once set up, running the fortune command pulls a random item from whichever database you point it to. People use this for a few practical reasons. The most common is adding a daily inspirational quote to your shell startup, so every time you open a terminal window, you see a random saying before you start working. It's a small way to get a moment of reflection or a smile while working at the command line. Developers, system administrators, and anyone who spends time in the terminal might enjoy this. For Chinese users especially, this repository is valuable because it includes culturally relevant quotes and classical poetry rather than just English content. The setup is straightforward: install the fortune program (which most Linux and Mac users can do with a single package manager command), download the database files from this repository, and move them to the right folder. You can even create your own fortune database by writing items separated by percent signs and running a simple indexing command. The flexibility to mix multiple databases and weight them differently means you can customize which quotes appear more or less frequently when you run the command.

Copy-paste prompts

Prompt 1
Show me how to install the fortune command and set up this repo's Chinese quotes database on my system.
Prompt 2
Help me add a random fortune quote to my .bashrc so it prints every time I open a terminal.
Prompt 3
How do I create my own custom fortune database file using the percent-sign format from this repo?
Prompt 4
Explain how to mix the English and Chinese fortune databases with different weights when running the fortune command.

Frequently asked questions

What is fortunes?

A curated collection of fortune-cookie quote databases for the Unix `fortune` command, with a huge Chinese quotes set plus classical Tang and Song poetry.

Is fortunes actively maintained?

Dormant — no commits in 2+ years (last push 2021-08-13).

How hard is fortunes to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is fortunes for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.