Skip to content

Instantly share code, notes, and snippets.

@MatheusFaria
Last active June 21, 2018 13:00
Show Gist options
  • Save MatheusFaria/701a85ddf62fd52ef29d to your computer and use it in GitHub Desktop.
Save MatheusFaria/701a85ddf62fd52ef29d to your computer and use it in GitHub Desktop.
#!/bin/bash
# You must run with bash
#function nyan
#{
e='\033'
RESET="$e[0m"
BOLD="$e[1m"
CYAN="$e[0;96m"
RED="$e[0;91m"
YELLOW="$e[0;93m"
GREEN="$e[0;92m"
CHANGE=0
while [ "$CHANGE" -ne "18" ]
do
if [ "$CHANGE" -eq "0" ]; then
echo -en $RED'`·.,¸,.·*·.'
echo -e $RESET$BOLD'╭━━━━╮ '$RESET
echo -en $YELLOW'`·.,¸,.·*·.'
echo -e $RESET$BOLD'|::: /\_/\\ '$RESET
echo -en $GREEN'`·.,¸,.·*·.'
echo -e $RESET$BOLD'|:::( ◕ᴥ◕) '$RESET
echo -en $CYAN'`·.,¸,.·*·.'
echo -e $RESET$BOLD'u-u━━-u--u '$RESET
CHANGE=1
else
echo -en $RED'-_-_-_-_-_-_-_'
echo -e $RESET$BOLD',------,'$RESET
echo -en $YELLOW'_-_-_-_-_-_-_-'
echo -e $RESET$BOLD'| /\_/\\'$RESET
echo -en $GREEN'-_-_-_-_-_-_-'
echo -e $RESET$BOLD'~|__( ^ .^)'$RESET
echo -en $CYAN'-_-_-_-_-_-_-'
echo -e $RESET$BOLD'"" ""'$RESET
CHANGE=0
fi
sleep 0.5
printf "\033[A"
printf "\033[A"
printf "\033[A"
printf "\033[A"
done
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment