Skip to content

Instantly share code, notes, and snippets.

@rothwerx
Last active December 23, 2015 03:39
Show Gist options
  • Select an option

  • Save rothwerx/6574543 to your computer and use it in GitHub Desktop.

Select an option

Save rothwerx/6574543 to your computer and use it in GitHub Desktop.
Bash: Animated dance. Useful for your celebrating when your multi-pipe one-liner works on the first try.
function _totheleft() {
echo "(°_°)"
echo "<) )╯"
echo ' / \'
}
function _totheright() {
echo " (°_°)"
echo "\( (>"
echo ' / \'
}
function _clear3() {
tput cuu1
tput el
tput cuu1
tput el
tput cuu1
tput el
}
function dance() {
for i in {1..5}; do
_totheleft
sleep 0.5
_clear3
_totheright
sleep 0.5
_clear3
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment