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.
- ๐ญ 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
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ช Fortune Cookie โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ /\_/\ โ
โ ( ^.^ ) โ
โ o_(")(") โ
โ โ
โ โจ Every 'Hello World' was once someone's first step to greatness ๐ถ โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Motivational โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
git clone https://github.com/ZichenYuan/terminal-fortune-cookie.git
cd terminal-fortune-cookie
chmod +x install.sh
./install.sh# 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 BashThe fortune cookie will be automatically generated when ever you open the terminal. But if you want to try the program yourself, here is how.
fortune-cookie # Random fortune from any categoryfortune-cookie -c motivational # Motivational quotes only
fortune-cookie -c humor # Programming humor only
fortune-cookie -c wisdom # Coding wisdom onlyfortune-cookie --stats # Show fortune database statistics
fortune-cookie --help # Show help message
fortune-cookie --version # Show version infoASCII 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!
Uplifting quotes to keep you coding with confidence and joy.
Programming jokes and witty observations about the developer life.
Practical coding advice and philosophical insights about software development.
- ๐ฑ Animals - Cats, dogs, owls, penguins, and ducks
- ๐ป Tech - Computers, coffee mugs, bugs, and rockets
- โจ Symbols - Stars, hearts, and geometric patterns
- Python 3.8+
- Terminal with color support (most modern terminals)
rich- For beautiful terminal formattingcolorama- For cross-platform color support
If you need to temporarily disable fortunes:
# Comment out or remove this line from your shell profile:
# fortune-cookie# Install to a specific location
pip install -e . --target /your/custom/pathโ
Zsh (macOS default, Oh My Zsh)
โ
Bash (Linux default, macOS)
โ
Fish (Modern shell)
โ
PowerShell (Windows)
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
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-cookieWe'd love your help making Terminal Fortune Cookie even more delightful!
- Edit
fortune_cookie/data/fortunes.json - Add your fortune to the appropriate category
- Test with
fortune-cookie -c [category]
- Edit
fortune_cookie/data/ascii_art.json - Add your art to the appropriate category
- Test the display
git clone https://github.com/ZichenYuan/terminal-fortune-cookie.git
cd terminal-fortune-cookie
pip install -e .[dev] # If you add dev dependenciesMIT License - feel free to use, modify, and distribute!
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! ๐