Ascii: Remove duplicates from get_distro_colors()

This commit is contained in:
Dylan Araps 2016-11-13 20:41:27 +11:00
parent 5511b04940
commit 234ce87aab
4 changed files with 39 additions and 87 deletions

View file

@ -1,19 +1,19 @@
${c1} `.-/::/-`` ${c2} `.-/::/-``
.-/osssssssso/. .-/osssssssso/.
:osyysssssssyyys+- :osyysssssssyyys+-
`.+yyyysssssssssyyyyy+. `.+yyyysssssssssyyyyy+.
`/syyyyyssssssssssyyyyys-` `/syyyyyssssssssssyyyyys-`
`/yhyyyyysss${c2}++${c1}ssosyyyyhhy/` `/yhyyyyysss${c1}++${c2}ssosyyyyhhy/`
.ohhhyyyys${c2}o++/+o${c1}so${c2}+${c1}syy${c2}+${c1}shhhho. .ohhhyyyys${c1}o++/+o${c2}so${c1}+${c2}syy${c1}+${c2}shhhho.
.shhhhys${c2}oo++//+${c1}sss${c2}+++${c1}yyy${c2}+s${c1}hhhhs. .shhhhys${c1}oo++//+${c2}sss${c1}+++${c2}yyy${c1}+s${c2}hhhhs.
-yhhhhs${c2}+++++++o${c1}ssso${c2}+++${c1}yyy${c2}s+o${c1}hhddy: -yhhhhs${c1}+++++++o${c2}ssso${c1}+++${c2}yyy${c1}s+o${c2}hhddy:
-yddhhy${c2}o+++++o${c1}syyss${c2}++++${c1}yyy${c2}yooy${c1}hdddy- -yddhhy${c1}o+++++o${c2}syyss${c1}++++${c2}yyy${c1}yooy${c2}hdddy-
.yddddhs${c2}o++o${c1}syyyyys${c2}+++++${c1}yyhh${c2}sos${c1}hddddy` .yddddhs${c1}o++o${c2}syyyyys${c1}+++++${c2}yyhh${c1}sos${c2}hddddy`
`odddddhyosyhyyyyyy${c2}++++++${c1}yhhhyosddddddo `odddddhyosyhyyyyyy${c1}++++++${c2}yhhhyosddddddo
.dmdddddhhhhhhhyyyo${c2}+++++${c1}shhhhhohddddmmh. .dmdddddhhhhhhhyyyo${c1}+++++${c2}shhhhhohddddmmh.
ddmmdddddhhhhhhhso${c2}++++++${c1}yhhhhhhdddddmmdy ddmmdddddhhhhhhhso${c1}++++++${c2}yhhhhhhdddddmmdy
dmmmdddddddhhhyso${c2}++++++${c1}shhhhhddddddmmmmh dmmmdddddddhhhyso${c1}++++++${c2}shhhhhddddddmmmmh
-dmmmdddddddhhys${c2}o++++o${c1}shhhhdddddddmmmmd- -dmmmdddddddhhys${c1}o++++o${c2}shhhhdddddddmmmmd-
.smmmmddddddddhhhhhhhhhdddddddddmmmms. .smmmmddddddddhhhhhhhhhdddddddddmmmms.
`+ydmmmdddddddddddddddddddmmmmdy/. `+ydmmmdddddddddddddddddddmmmmdy/.
`.:+ooyyddddddddddddyyso+:.` `.:+ooyyddddddddddddyyso+:.`

View file

@ -7,9 +7,9 @@ ${c1} -`
`/:-:++oooo+: `/:-:++oooo+:
`/++++/+++++++: `/++++/+++++++:
`/++++++++++++++: `/++++++++++++++:
`/+++o${c2}oooooooo${c1}oooo/` `/+++ooooooooooooo/`
./${c2}ooosssso++osssssso${c1}+` ./ooosssso++osssssso+`
${c2} .oossssso-````/ossssss+` .oossssso-````/ossssss+`
-osssssso. :ssssssso. -osssssso. :ssssssso.
:osssssss/ osssso+++. :osssssss/ osssso+++.
/ossssssss/ +ssssooo/- /ossssssss/ +ssssooo/-

View file

@ -7,8 +7,8 @@ M- ,=;;;#:, ,:#;;:=, ,@
:# :#.=/++++/=.$= #= :# :#.=/++++/=.$= #=
,#; #/:+/;,,/++:+/ ;+. ,#; #/:+/;,,/++:+/ ;+.
,+/. ,;@+, ,#H;, ,/+, ,+/. ,;@+, ,#H;, ,/+,
;+;;/= @. ${c2}.H${c3}#${c2}#X ${c1}-X :///+; ;+;;/= @. ${c3}.H${c2}#${c3}#X ${c1}-X :///+;
;+=;;;.@, ${c3}.X${c2}M${c3}@$. ${c1}=X.//;=#/. ;+=;;;.@, ${c2}.X${c3}M${c2}@$. ${c1}=X.//;=#/.
,;: :@#= =$H: .+#- ,;: :@#= =$H: .+#-
,#= #;-///==///-// =#, ,#= #;-///==///-// =#,
;+ :#-;;;:;;;;-X- +: ;+ :#-;;;:;;;;-X- +:

View file

@ -2376,16 +2376,8 @@ get_distro_colors() {
# #
# $ascii_distro is the same as $distro # $ascii_distro is the same as $distro
case "$ascii_distro" in case "$ascii_distro" in
"Arch"*) "Arch"* | "Kogaion"* | "Elementary"* | "GalliumOS"* | "Rosa"* | "OpenWrt"* | "Netrunner"* | "PCLinuxOS"* | "Slackware"* | "KaOS"* | "Kubuntu"* | "Lubuntu"* | "Xubuntu"* | "OpenIndiana"* | "Fedora"* | "Korora"* | "Sabayon"* | "Frugalware"* | "Exherbo"* | "Scientific"* | "Solus"*)
set_colors 4 7 set_colors 4 7 1
;;
"Antergos"*)
set_colors 6 4
;;
"BlankOn"* | "DracOS"*)
set_colors 1 7
;; ;;
"CentOS"*) "CentOS"*)
@ -2401,7 +2393,11 @@ get_distro_colors() {
ascii_distro="chrome" ascii_distro="chrome"
;; ;;
"Debian"* | "Ubuntu"* | "DragonFly"* | "PacBSD"* | "Oracle"*) "Raspbian"*)
set_colors 2 1
;;
"Debian"* | "Ubuntu"* | "DragonFly"* | "PacBSD"* | "Oracle" | "BlankOn"* | "DracOS"* | "Peppermint"*)
set_colors 1 7 3 set_colors 1 7 3
;; ;;
@ -2420,27 +2416,6 @@ get_distro_colors() {
ascii_distro="redhat" ascii_distro="redhat"
;; ;;
"Pardus"*)
set_colors 3 7
;;
"Kogaion"* | "Elementary"* | "GalliumOS"* | "Rosa"* | "OpenWrt"* | "Netrunner"*)
set_colors 4 7
;;
"Fedora"* | "Korora"* | "Sabayon"* | "Frugalware"* | "Exherbo"*)
set_colors 4 7 1
;;
"Gentoo"* | "Funtoo"* | "SteamOS"* | "Devuan"*)
set_colors 5 7
;;
"KDE"*)
set_colors 2 7
ascii_distro="kde"
;;
"Kali"*) "Kali"*)
set_colors 4 8 set_colors 4 8
;; ;;
@ -2458,21 +2433,21 @@ get_distro_colors() {
set_colors 4 3 set_colors 4 3
;; ;;
"Mageia"* | "Porteus"*) "NetBSD"* | "Parabola"* | "Tails"* | "BLAG"* | "Gentoo"* | "Funtoo"* | "SteamOS"* | "Devuan"*)
set_colors 6 7 set_colors 5 7
;; ;;
"Peppermint"*) "OpenBSD"* | "GuixSD"* | "Pardus"*)
set_colors 1 7 set_colors 3 7 6 1 8
;; ;;
*"Mint"*) *"SUSE"* | "Manjaro"* | "Deepin"* |"LMDE"* | "Chapeau"* | "Bitrig"*)
set_colors 2 7 set_colors 2 7
ascii_distro="mint"
;; ;;
"LMDE"* | "Chapeau"* | "Bitrig"*) "KDE"*)
set_colors 2 7 set_colors 2 7
ascii_distro="kde"
;; ;;
"Android"*) "Android"*)
@ -2480,20 +2455,9 @@ get_distro_colors() {
ascii_length_force="19" ascii_length_force="19"
;; ;;
"NetBSD"* | "Parabola"* | "Tails"* | "BLAG"*) *"Mint"*)
set_colors 5 7
;;
"OpenBSD"* | "GuixSD"*)
set_colors 3 7 6 1 8
;;
*"SUSE"* | "Manjaro"* | "Deepin"*)
set_colors 2 7 set_colors 2 7
;; ascii_distro="mint"
"PCLinuxOS"* | "Slackware"* | "KaOS"* | "Kubuntu"* | "Lubuntu"* | "Xubuntu"* | "OpenIndiana"*)
set_colors 4 7 1
;; ;;
"Puppy"* | "Quirky Werewolf"* | "Precise Puppy"*) "Puppy"* | "Quirky Werewolf"* | "Precise Puppy"*)
@ -2506,15 +2470,7 @@ get_distro_colors() {
ascii_distro="sparky" ascii_distro="sparky"
;; ;;
"Scientific"*) "Trisquel"* | "NixOS"* | "Zorin"* | "Antergos"*)
set_colors 4 1 7
;;
"Solus"*)
set_colors 4 7
;;
"Trisquel"* | "NixOS"* | "Zorin"*)
set_colors 4 6 set_colors 4 6
;; ;;
@ -2522,10 +2478,14 @@ get_distro_colors() {
set_colors 1 2 3 4 5 6 set_colors 1 2 3 4 5 6
;; ;;
"void"*) "Void"* | "Haiku"*)
set_colors 2 8 set_colors 2 8
;; ;;
"Mageia"* | "Porteus"*)
set_colors 6 7
;;
"Windows 8"* | "Windows 10"*) "Windows 8"* | "Windows 10"*)
set_colors 6 7 set_colors 6 7
ascii_distro="windows10" ascii_distro="windows10"
@ -2535,14 +2495,6 @@ get_distro_colors() {
set_colors 1 2 4 3 set_colors 1 2 4 3
;; ;;
"Haiku"*)
set_colors 2 0
;;
"Raspbian"*)
set_colors 2 1
;;
"Linux") "Linux")
set_colors fg 8 3 set_colors fg 8 3
;; ;;