Created
January 26, 2018 23:44
-
-
Save yesmar/81a95e211bd83256fbb2496dfc8e8003 to your computer and use it in GitHub Desktop.
Mainly it snows, but sometimes it rains knives…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an update to Jerry Gamblin's script for macOS.