Skip to content

Instantly share code, notes, and snippets.

@johanlunds
Created September 13, 2023 11:10
Show Gist options
  • Save johanlunds/4d8fd45c115cd9dc1626f28ad7ed4527 to your computer and use it in GitHub Desktop.
Save johanlunds/4d8fd45c115cd9dc1626f28ad7ed4527 to your computer and use it in GitHub Desktop.
My MOTD
# A fun MOTD!
#
# https://www.ibiblio.org/pub/linux/games/amusements/fortune/!INDEX.html (alternative to taoup)
# https://github.com/globalcitizen/taoup (with some small local edits)
# https://github.com/jaseg/lolcat (fast version)
# http://www.figlet.org/examples.html
# https://en.wikipedia.org/wiki/Cowsay
#
# Future improvements:
# - Maybe it all becomes a bit too tall and too long sometimes: figlet font, fortune text, cowsay character height
# - Had to add "--machine" to taoup because cowsay bubble wrapped incorrectly without it.
figlet -w $COLUMNS -f "$(find /opt/homebrew/opt/figlet/share/figlet/fonts/*.flf | sort -R | head -1)" Welcome Johan | lolcat -r
~/.taoup/taoup-fortune --machine | cowsay -W $(expr $COLUMNS - 4) -f $(find /opt/homebrew/opt/cowsay/share/cows/*.cow | sort -R | head -1) | lolcat -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment