Last active
December 23, 2015 03:39
-
-
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.
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
| 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