Skip to content

Instantly share code, notes, and snippets.

@yesmar
Created January 26, 2018 23:44
Show Gist options
  • Save yesmar/81a95e211bd83256fbb2496dfc8e8003 to your computer and use it in GitHub Desktop.
Save yesmar/81a95e211bd83256fbb2496dfc8e8003 to your computer and use it in GitHub Desktop.
Mainly it snows, but sometimes it rains knives…
#!/bin/bash
case $((RANDOM % 4)) in
1) precip=🔪 ;;
*) precip=❄️ ;;
esac
lines=$(tput lines)
columns=$(tput cols)
for ((i=0; j=--i;)) do
clear
for ((d=lines; s=++j**3%columns,--d;)) do
printf %*s$precip\\n $s
done
sleep .1
done
@yesmar
Copy link
Author

yesmar commented Jan 26, 2018

This is an update to Jerry Gamblin's script for macOS.

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