Last active
February 24, 2016 03:15
-
-
Save oxguy3/b454cbb3f6636eaa7b19 to your computer and use it in GitHub Desktop.
bash script for giant animated rainbow text in your terminal
This file contains hidden or 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
# Run `figlol <your message...>` to start it. To stop, mash ^C til it terminates, then run `unfiglol` to clean up. | |
# It's sorta derpy on some terminal window sizes; you might need to adjust it. | |
# Requires figlet (`brew/yum/dnf/apt-get install figlet`) and lolcat (`gem install lolcat`) | |
figlol() { | |
echo $@ | figlet -w `tput cols` -c -f doh > /tmp/figlol.txt; | |
clear; | |
tput civis; | |
i=1; | |
while true; do | |
cat /tmp/figlol.txt | lolcat --seed $i; | |
sleep 0.01; | |
tput cup 0 0; | |
let i=i+6; | |
done | |
}; | |
unfiglol() { | |
tput cvvis; | |
clear; | |
rm /tmp/figlol.txt; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment