Skip to content

Instantly share code, notes, and snippets.

@oxguy3
Last active February 24, 2016 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oxguy3/b454cbb3f6636eaa7b19 to your computer and use it in GitHub Desktop.
Save oxguy3/b454cbb3f6636eaa7b19 to your computer and use it in GitHub Desktop.
bash script for giant animated rainbow text in your terminal
# 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