Skip to content

โœจ๐Ÿ„ Beautiful Cowsay zsh plugin to display jokes (UPDATE DAILY) ๐Ÿ’ฌ

Notifications You must be signed in to change notification settings

phucleeuwu/cowsay.zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

87 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฎ cowsay.zsh

Zsh plugin that displays a joke with cowsay and lolcat every time you open a terminal.

๐Ÿ“ฅ Installation

Using Zinit๐ŸŒป

zinit depth"1" lucid nocd light-mode atload"joke" for phucleeuwu/cowsay.zsh 

Manual Installation

  1. Clone the repository:
    git clone https://github.com/phucleeuwu/cowsay.zsh.git ~/cowsay.zsh
  2. Source the plugin in your .zshrc:
    source ~/cowsay.zsh/cowsay.plugin.zsh
  3. Restart your terminal:
    source ~/.zshrc

๐Ÿ›  Usage

Just open your terminal! The plugin will automatically display a joke every session If you don't want automatic display:

zinit depth"1" lucid nocd light-mode for phucleeuwu/cowsay.zsh 

You can also manually trigger it:

joke
# for cowsay

or:

dadjoke
# for cowthink

๐Ÿ”„ Automatic Joke Updates

This repository includes a GitHub Actions workflow to update jokes.txt daily. To update jokes, use git pull for git install Zinit update:

zinit update phucleeuwu/cowsay.zsh

Workflow Details:

  • Fetches 100 new jokes from icanhazdadjoke.com
  • Commits and pushes updates to jokes.txt
  • Runs every day at midnight (UTC)

๐Ÿš€ Customization

You can customize the joke behavior by modifying joke.plugin.zsh. Hereโ€™s what you can do:

  • Change joke source: Modify the jokes_file path.
  • Use a specific cowsay character: Replace ls with a fixed filename, e.g., cowsay -f dragon.

๐Ÿง Dependencies

Ensure you have these installed:

  • cowsay
  • lolcat (optinal)
  • ripgrep (rg)
  • jq

Install them via Homebrew:

brew install cowsay lolcat ripgrep jq

๐Ÿ“œ License

MIT License - Feel free to use and modify!


Made with ๐Ÿฎ๐Ÿ’ฌ by phucleeuwu

About

โœจ๐Ÿ„ Beautiful Cowsay zsh plugin to display jokes (UPDATE DAILY) ๐Ÿ’ฌ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages