Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Terminal Fortune Cookie ๐Ÿช

Delightful developer fortunes and ASCII art that appear every time you open your terminal! Brighten your coding sessions with motivational quotes, programming humor, and cute ASCII art.

โœจ Features

  • ๐ŸŽญ Developer-focused fortunes - Motivational quotes, programming humor, and coding wisdom
  • ๐ŸŽจ Beautiful ASCII art - Cute animals, tech symbols, and decorative elements
  • ๐ŸŒˆ Colorful terminal output - Rich formatting that makes your terminal pop
  • โšก Lightning fast - < 100ms execution time, won't slow down your terminal startup
  • ๐Ÿ”ง Easy installation - One command setup with automatic shell integration

๐Ÿ–ผ๏ธ Preview

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ๐Ÿช Fortune Cookie โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                              โ”‚
โ”‚     /\_/\                                                                    โ”‚
โ”‚    ( ^.^ )                                                                   โ”‚
โ”‚   o_(")(")                                                                   โ”‚
โ”‚                                                                              โ”‚
โ”‚  โœจ Every 'Hello World' was once someone's first step to greatness ๐Ÿ‘ถ        โ”‚
โ”‚                                                                              โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Motivational โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

๐Ÿš€ Quick Install

Option 1: Automatic Installation (Recommended)

git clone https://github.com/ZichenYuan/terminal-fortune-cookie.git
cd terminal-fortune-cookie
chmod +x install.sh
./install.sh

Option 2: Manual Installation

# 1. Install the package
git clone https://github.com/ZichenYuan/terminal-fortune-cookie.git
cd terminal-fortune-cookie
pip install -e .

# 2. Add to your shell profile
echo "fortune-cookie" >> ~/.zshrc    # For Zsh
echo "fortune-cookie" >> ~/.bashrc   # For Bash

๐Ÿ“– Usage

The fortune cookie will be automatically generated when ever you open the terminal. But if you want to try the program yourself, here is how.

Basic Usage

fortune-cookie                    # Random fortune from any category

Category-Specific Fortunes

fortune-cookie -c motivational   # Motivational quotes only
fortune-cookie -c humor          # Programming humor only
fortune-cookie -c wisdom         # Coding wisdom only

Other Options

fortune-cookie --stats           # Show fortune database statistics
fortune-cookie --help           # Show help message
fortune-cookie --version        # Show version info

๐ŸŽญ ASCII Art Display

ASCII art appears randomly in about 66% of fortune displays to create visual variety while keeping the output interesting. You'll see cute animals with motivational quotes, tech symbols with humor, and decorative patterns with wisdom!

๐ŸŽจ Fortune Categories

๐ŸŒŸ Motivational

Uplifting quotes to keep you coding with confidence and joy.

๐Ÿ˜„ Humor

Programming jokes and witty observations about the developer life.

๐Ÿง  Wisdom

Practical coding advice and philosophical insights about software development.

๐ŸŽญ ASCII Art Themes

  • ๐Ÿฑ Animals - Cats, dogs, owls, penguins, and ducks
  • ๐Ÿ’ป Tech - Computers, coffee mugs, bugs, and rockets
  • โœจ Symbols - Stars, hearts, and geometric patterns

๐Ÿ› ๏ธ Requirements

  • Python 3.8+
  • Terminal with color support (most modern terminals)

๐Ÿ“ฆ Dependencies

  • rich - For beautiful terminal formatting
  • colorama - For cross-platform color support

๐Ÿ”ง Configuration

Disable for Specific Sessions

If you need to temporarily disable fortunes:

# Comment out or remove this line from your shell profile:
# fortune-cookie

Custom Installation Path

# Install to a specific location
pip install -e . --target /your/custom/path

๐ŸŽฏ Shell Compatibility

โœ… Zsh (macOS default, Oh My Zsh)
โœ… Bash (Linux default, macOS)
โœ… Fish (Modern shell)
โœ… PowerShell (Windows)
โš ๏ธ Other shells may require manual configuration

๐Ÿ“Š Statistics

Run fortune-cookie --stats to see your fortune database info:

๐Ÿช Fortune Cookie Database Stats:
   Total Fortunes: 45
   Categories: motivational, humor, wisdom
   Motivational: 15 fortunes
   Humor: 15 fortunes
   Wisdom: 15 fortunes

๐Ÿ”„ Uninstall

To remove Terminal Fortune Cookie:

# 1. Remove from shell profile
# Edit ~/.zshrc or ~/.bashrc and remove the "fortune-cookie" line

# 2. Uninstall package
pip uninstall terminal-fortune-cookie

๐Ÿค Contributing

We'd love your help making Terminal Fortune Cookie even more delightful!

Adding New Fortunes

  1. Edit fortune_cookie/data/fortunes.json
  2. Add your fortune to the appropriate category
  3. Test with fortune-cookie -c [category]

Adding ASCII Art

  1. Edit fortune_cookie/data/ascii_art.json
  2. Add your art to the appropriate category
  3. Test the display

Development Setup

git clone https://github.com/ZichenYuan/terminal-fortune-cookie.git
cd terminal-fortune-cookie
pip install -e .[dev]  # If you add dev dependencies

๐Ÿ“ License

MIT License - feel free to use, modify, and distribute!

๐ŸŽ‰ Credits

Inspired by the classic Unix fortune command, but with a modern developer twist and delightful ASCII art.


Made with ๐Ÿ’ by developers, for developers

Start every coding session with a smile! ๐Ÿ˜Š

About

Delightful developer fortunes and ASCII art for your terminal startup

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages