log.nikhil.io

Cowsay! 🐮

I love me my cowsay. It’s a lovely amusement that greets me every time I open a terminal session.

Example of cowsay in action

People typically use it with the fortune command but my cow moos a random developer excuse. I generate that using this bash function and this invocation:

command -v cowsay >/dev/null 2>&1 && {
    # shellcheck source=/dev/null
    random_excuse | cowsay -s
    echo ""
}

I was looking for more cowsay templates and found this giant list. You’d use echo "Moomoo" | cowsay -f some_template.cow. If you need color, there’s Charc0al’s list which doubles as a converter in case you want to use your own images. Since I don’t trust things on the internet to continue to be where they are, I saved that repo here.