From a7d9d86b269c18e26c3e873b57e6854e216b4354 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Wed, 31 Oct 2012 16:38:56 +0400 Subject: [PATCH] Bash: nyan cat alias. --- includes/bash_functions.bash | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/includes/bash_functions.bash b/includes/bash_functions.bash index 8bc2ba7..578dee0 100644 --- a/includes/bash_functions.bash +++ b/includes/bash_functions.bash @@ -57,3 +57,26 @@ function extract() { echo "'$1' is not a valid file" fi } + +# Print nyan cat +# https://github.com/steckel/Git-Nyan-Graph/blob/master/nyan.sh +# If you want big animated version: `telnet miku.acm.uiuc.edu` +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" + echo + 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 + echo +}