Generate random programming wisdom, coding jokes, and software quotes in classic Unix fortune style
- 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
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
# Clone the repository
git clone https://github.com/KurtWeston/fortune-code.git
cd fortune-code
# Install dependencies
cargo buildcargo run- rust
claprandcoloredtextwrap
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.