Skip to content

Instantly share code, notes, and snippets.

@lovemecomputer
Last active August 12, 2018 21:12
Show Gist options
  • Save lovemecomputer/fb128e037a31dfdfbb0298b5140760b6 to your computer and use it in GitHub Desktop.
Save lovemecomputer/fb128e037a31dfdfbb0298b5140760b6 to your computer and use it in GitHub Desktop.
rainbow greeting
# my personal implementation of @florida's https://gist.github.com/florida/1839b047792b2d58f208a0913d4b2a6e
# DEPENDENCIES:
# - `lolcat` is the gradienterizer: https://github.com/busyloop/lolcat
# SETUP:
# this file (greeting.sh) is in ~/bin
# my .bash_profile includes this line to make all scripts in ~/bin globally accesscible:
# - `export PATH=$PATH:~/bin`
# at the end of .bash_profile, it includes the line
# - `eval "sh greeting.sh"`
# note: could probably just do `eval "sh <path/to/file>/greeting.sh"` so you don't have to use that first setup step of making it globally accessible?
# THE SCRIPT:
for i in $(seq 7); do
for i in $(seq $(tput cols)); do
printf █
done
done | lolcat --freq=0.8 --spread $(tput cols)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment