Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get your fortune in a fancy way every 10 seconds
#!/bin/bash
# Get your fortune in a fancy way every 10 seconds.
# ___________________________
#< Let me tell your fortune! >
# ---------------------------
# \ ^__^
# \ (oo)\_______
# (__)\ )\/\
# ||----w |
# || ||
clear
while true
do
tput civis
tput cup 2 0
fortune -as | cowsay -f `ls /usr/share/cowsay/cows/ | shuf -n 1`
sleep 10
clear
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment