Skip to content

Instantly share code, notes, and snippets.

@bizarre
Created August 8, 2021 11:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bizarre/40b3ae587afbbc5d96aed90618565851 to your computer and use it in GitHub Desktop.
Save bizarre/40b3ae587afbbc5d96aed90618565851 to your computer and use it in GitHub Desktop.
colourful random quote on shell login :)
QUOTE="$(curl -s https://api.quotable.io/random)"
CONTENT="$(echo $QUOTE | jq -r ".content")"
AUTHOR="$(echo $QUOTE | jq -r ".author")"
MOTD="$CONTENT\n- $AUTHOR"
echo "$MOTD" | lolcat
@bizarre
Copy link
Author

bizarre commented Aug 8, 2021

Screen Shot 2021-08-08 at 4 04 17 AM

Installing

prereqs: lolcat & jq:
for macOS:

brew install lolcat
brew install jq

for zsh:

echo "$(curl -s https://gist.githubusercontent.com/bizarre/40b3ae587afbbc5d96aed90618565851/raw/9dd0d34c2ad2c1327f0b6d7bfc65017f3a4a3ff9/motd.sh)" >> ~/.zprofile

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