Skip to content

Generate random programming wisdom, coding jokes, and software quotes in classic Unix fortune style

License

Notifications You must be signed in to change notification settings

KurtWeston/fortune-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fortune-code

Generate random programming wisdom, coding jokes, and software quotes in classic Unix fortune style

Features

  • Display random fortune from curated collection of 200+ entries
  • Category filtering: --tips, --jokes, --quotes, --antipatterns, or --all
  • ASCII art borders and decorative formatting around fortunes
  • Colored output with syntax highlighting for code snippets in fortunes
  • Short mode (--short) for one-liners vs long mode for multi-line wisdom
  • Search functionality to find fortunes containing specific keywords
  • List mode (--list) to show all available fortunes in a category
  • Add custom fortunes to ~/.config/fortune-code/custom.txt
  • Cowsay integration (--cowsay) for ASCII art character delivery
  • Shell integration examples for daily fortune in .bashrc/.zshrc

How to Use

Use this project when you need to:

  • Quickly solve problems related to fortune-code
  • Integrate rust functionality into your workflow
  • Learn how rust handles common patterns

Installation

# Clone the repository
git clone https://github.com/KurtWeston/fortune-code.git
cd fortune-code

# Install dependencies
cargo build

Usage

cargo run

Built With

  • rust

Dependencies

  • clap
  • rand
  • colored
  • textwrap

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Generate random programming wisdom, coding jokes, and software quotes in classic Unix fortune style

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages