Merge pull request #423 from dylanaraps/tux

Ascii [Linux] Add tux ascii art if distro ascii art doesn't exist
This commit is contained in:
Dylan Araps 2016-11-05 11:05:38 +11:00 committed by GitHub
commit 8711f1bfaf
2 changed files with 28 additions and 1 deletions

14
ascii/distro/linux Normal file
View file

@ -0,0 +1,14 @@
"\
${c2} #####
${c2} #######
${c2} ##${c1}O${c2}#${c1}O${c2}##
${c2} #${c3}#####${c2}#
${c2} ##${c1}##${c3}###${c1}##${c2}##
${c2} #${c1}##########${c2}##
${c2} #${c1}############${c2}##
${c2} #${c1}############${c2}###
${c3} ##${c2}#${c1}###########${c2}##${c3}#
${c3}######${c2}#${c1}#######${c2}#${c3}######
${c3}#######${c2}#${c1}#####${c2}#${c3}#######
${c3} #####${c2}#######${c3}#####
"

View file

@ -2555,9 +2555,22 @@ colors() {
setcolors 1 2 4 3 setcolors 1 2 4 3
;; ;;
"Raspbian"* | *) "Raspbian"*)
setcolors 2 1 setcolors 2 1
;; ;;
"Linux")
setcolors fg 8 3
;;
*)
case "$os" in
"Linux")
ascii_distro="linux"
setcolors fg 8 3
;;
esac
;;
esac esac
# Overwrite distro colors if '$ascii_colors' doesn't # Overwrite distro colors if '$ascii_colors' doesn't