Skip to content

Instantly share code, notes, and snippets.

@nucliweb
Last active March 12, 2025 14:04
Show Gist options
  • Save nucliweb/da7cff954032bdc685f1 to your computer and use it in GitHub Desktop.
Save nucliweb/da7cff954032bdc685f1 to your computer and use it in GitHub Desktop.
fortune | cowsay | lolcat

fortune | cowsay | lolcat

Install Brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install fortune

brew search fortune

Install cowsay

brew search cowsay

Install lolcat

sudo gem install lolcat

Run fortune | cowsay | lolcat

fortune | cowsay | lolcat

fortune-cowsay-lolcat

@kunthar
Copy link

kunthar commented Jul 15, 2020

#Random cows with lolcat
#Bash version for Macports installation

/opt/local/bin/fortune -s | /opt/local/bin/cowsay -f "$(ls /opt/local/share/cowsay/cows | /opt/local/bin/gshuf -n 1)" |  /opt/local/bin/lolcat

#Fish version

fortune -s | cowsay -f (ls /opt/local/share/cowsay/cows/ | gshuf -n 1)  | lolcat

@ProbablyAarav
Copy link

For Debian based distros (Debian, Ubuntu, Mint, Fedora, Kali, etc):```

sudo apt install fortune cowsay lolcat 
fortune | cowsay | lolcat

OR

sudo apt install fortune
sudo apt install cowsay
sudo apt install lolcat
fortune | cowsay | lolcat

fun fact: you can make it so that it shows up whenever terminal is opened:

nano ~/.bashrc

or

sudo apt install micro
micro ~/.bashrc

I like micro because it has more conventional keyboard shortcuts
add to the bottom of .bashrc:

if [ -t 1 ]; then
  fortune | cowsay| lolcat
fi

@peteee
Copy link

peteee commented Mar 11, 2025

add an animation and change from cow to tux (or others -> try listing them all with command below):
fortune | cowsay -f tux | lolcat -a -d 5
list all cowsay characters:
for f in /usr/share/cowsay/cows/*; do cowsay -f "${f:23:-4}" "${f:23:-4}"; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment