Ascii: Alphabetize distro names

master
Dylan Araps 9 years ago
parent 484a306831
commit d4f5ee4435
  1. 564
      neofetch

@ -2489,174 +2489,175 @@ get_distro_colors() {
#
# $ascii_distro is the same as $distro.
case "$ascii_distro" in
"arch_small")
set_colors 4 7 1
ascii_file="arch_small"
"Alpine"*)
set_colors 4 5 7 6
ascii_file="alpine"
;;
"arch_old")
set_colors 4 7 1
ascii_file="arch_old"
"Android"*)
set_colors 2 7
ascii_file="android"
ascii_length_force="19"
;;
"Arch"*)
set_colors 4 7 1
ascii_file="arch"
"Antergos"*)
set_colors 4 6
ascii_file="antergos"
;;
"Kogaion"*)
set_colors 4 7 1
ascii_file="kogaion"
"antiX"*)
set_colors 1 7 3
ascii_file="antix"
;;
"Elementary"*)
"AOSC"*)
set_colors 4 7 1
ascii_file="elementary"
ascii_file="aosc"
;;
"GalliumOS"*)
"Apricity"*)
set_colors 4 7 1
ascii_file="galliumos"
ascii_file="apricity"
;;
"Rosa"*)
"arch_small")
set_colors 4 7 1
ascii_file="rosa"
ascii_file="arch_small"
;;
"OpenWrt"*)
"arch_old")
set_colors 4 7 1
ascii_file="openwrt"
ascii_file="arch_old"
;;
"Netrunner"*)
"Arch"*)
set_colors 4 7 1
ascii_file="netrunner"
ascii_file="arch"
;;
"PCLinuxOS"*)
set_colors 4 7 1
ascii_file="pclinuxos"
"Bitrig"*)
set_colors 2 7
ascii_file="bitrig"
;;
"Slackware"*)
set_colors 4 7 1
ascii_file="slackware"
"BLAG"*)
set_colors 5 7
ascii_file="blag"
;;
"KaOS"*)
set_colors 4 7 1
ascii_file="kaos"
"BlankOn"*)
set_colors 1 7 3
ascii_file="blankon"
;;
"Kubuntu"*)
set_colors 4 7 1
ascii_file="kubuntu"
"BunsenLabs"*)
set_colors fg 7
ascii_file="bunsenlabs"
;;
"Lubuntu"*)
set_colors 4 7 1
ascii_file="lubuntu"
"CentOS"*)
set_colors 3 2 4 5 7
ascii_file="centos"
;;
"Xubuntu"*)
set_colors 4 7 1
ascii_file="xubuntu"
"Chakra"*)
set_colors 4 5 7 6
ascii_file="chakra"
;;
"OpenIndiana"*)
"ChaletOS"*)
set_colors 4 7 1
ascii_file="openindiana"
ascii_file="chaletos"
;;
"Fedora"* | "RFRemix"*)
set_colors 4 7 1
ascii_file="fedora"
"Chapeau"*)
set_colors 2 7
ascii_file="chapeau"
;;
"Korora"*)
set_colors 4 7 1
ascii_file="korora"
"Chrom"*)
set_colors 2 1 3 4 7
ascii_file="chrome"
;;
"Sabayon"*)
set_colors 4 7 1
ascii_file="sabayon"
"crux_small")
set_colors 4 5 7 6
ascii_file="crux_small"
;;
"Frugalware"*)
set_colors 4 7 1
ascii_file="frugalware"
"CRUX"*)
set_colors 4 5 7 6
ascii_file="crux"
;;
"Exherbo"*)
set_colors 4 7 1
ascii_file="exherbo"
"Debian"*)
set_colors 1 7 3
ascii_file="debian"
;;
"Scientific"*)
set_colors 4 7 1
ascii_file="scientific"
"Deepin"*)
set_colors 2 7
ascii_file="deepin"
;;
"Solus"*)
set_colors 4 7 1
ascii_file="solus"
"Devuan"*)
set_colors 5 7
ascii_file="devuan"
;;
"ChaletOS"*)
set_colors 4 7 1
ascii_file="chaletos"
"DracOS"*)
set_colors 1 7 3
ascii_file="dracos"
;;
"Apricity"*)
set_colors 4 7 1
ascii_file="apricity"
"DragonFly"*)
set_colors 1 7 3
ascii_file="dragonflybsd"
;;
"SwagArch"*)
"Elementary"*)
set_colors 4 7 1
ascii_file="swagarch"
ascii_file="elementary"
;;
"AOSC"*)
"Exherbo"*)
set_colors 4 7 1
ascii_file="aosc"
ascii_file="exherbo"
;;
"Ubuntu-Budgie"*)
"Fedora"* | "RFRemix"*)
set_colors 4 7 1
ascii_file="ubuntu-budgie"
ascii_file="fedora"
;;
"CentOS"*)
set_colors 3 2 4 5 7
ascii_file="centos"
"FreeBSD"*)
set_colors 1 7 3
ascii_file="freebsd"
;;
"GoboLinux"*)
set_colors 5 4 6 2
ascii_file="gobolinux"
"Frugalware"*)
set_colors 4 7 1
ascii_file="frugalware"
;;
"SalentOS"*)
set_colors 2 1 3 7
ascii_file="salentos"
"Funtoo"*)
set_colors 5 7
ascii_file="funtoo"
;;
"crux_small")
set_colors 4 5 7 6
ascii_file="crux_small"
"GalliumOS"*)
set_colors 4 7 1
ascii_file="galliumos"
;;
"CRUX"*)
set_colors 4 5 7 6
ascii_file="crux"
"gentoo_small")
set_colors 5 7
ascii_file="gentoo_small"
;;
"Chakra"*)
set_colors 4 5 7 6
ascii_file="chakra"
"Gentoo"*)
set_colors 5 7
ascii_file="gentoo"
;;
"gNewSense"*)
@ -2664,79 +2665,79 @@ get_distro_colors() {
ascii_file="gnewsense"
;;
"SailfishOS"*)
set_colors 4 5 7 6
ascii_file="sailfishos"
"GoboLinux"*)
set_colors 5 4 6 2
ascii_file="gobolinux"
;;
"Alpine"*)
set_colors 4 5 7 6
ascii_file="alpine"
"Grombyang"*)
set_colors 4 2 1
ascii_file="grombyang"
;;
"Ubuntu-GNOME"*)
set_colors 4 5 7 6
ascii_file="ubuntu-gnome"
"GuixSD"*)
set_colors 3 7 6 1 8
ascii_file="guixsd"
;;
"Qubes"*)
set_colors 4 5 7 6
ascii_file="qubes"
"Haiku"*)
set_colors 2 8
ascii_file="haiku"
;;
"Chrom"*)
set_colors 2 1 3 4 7
ascii_file="chrome"
"Kali"*)
set_colors 4 8
ascii_file="kali"
;;
"Raspbian"*)
set_colors 2 1
ascii_file="raspbian"
"KaOS"*)
set_colors 4 7 1
ascii_file="kaos"
;;
"Debian"*)
set_colors 1 7 3
ascii_file="debian"
"KDE"*)
set_colors 2 7
ascii_file="kde"
;;
"ubuntu_old")
set_colors 1 7 3
ascii_file="ubuntu_old"
"Kogaion"*)
set_colors 4 7 1
ascii_file="kogaion"
;;
"Ubuntu"*)
set_colors 1 7 3
ascii_file="ubuntu"
"Korora"*)
set_colors 4 7 1
ascii_file="korora"
;;
"DragonFly"*)
set_colors 1 7 3
ascii_file="dragonflybsd"
"Kubuntu"*)
set_colors 4 7 1
ascii_file="kubuntu"
;;
"PacBSD"*)
set_colors 1 7 3
ascii_file="pacbsd"
"Linux")
set_colors fg 8 3
ascii_file="linux"
;;
"Oracle"*)
set_colors 1 7 3
ascii_file="oracle"
"LMDE"*)
set_colors 2 7
ascii_file="lmde"
;;
"BlankOn"*)
set_colors 1 7 3
ascii_file="blankon"
"Lubuntu"*)
set_colors 4 7 1
ascii_file="lubuntu"
;;
"DracOS"*)
set_colors 1 7 3
ascii_file="dracos"
"Mageia"*)
set_colors 6 7
ascii_file="mageia"
;;
"Peppermint"*)
set_colors 1 7 3
ascii_file="peppermint"
"Manjaro"*)
set_colors 2 7
ascii_file="manjaro"
;;
"Minix"*)
@ -2744,40 +2745,45 @@ get_distro_colors() {
ascii_file="minix"
;;
"antiX"*)
set_colors 1 7 3
ascii_file="antix"
# TODO (Before PR is merged): Make this glob less greedy.
*"Mint"*)
set_colors 2 7
ascii_file="mint"
;;
"FreeBSD"*)
set_colors 1 7 3
ascii_file="freebsd"
"MX"*)
set_colors 4 6 7
ascii_file="mx"
;;
"PCBSD"* | "TrueOS"*)
set_colors 1 7 3
ascii_file="trueos"
"NetBSD"*)
set_colors 5 7
ascii_file="netbsd"
;;
"Red Star"* | "Redstar"*)
set_colors 1 7 3
ascii_file="redstar"
"Netrunner"*)
set_colors 4 7 1
ascii_file="netrunner"
;;
# TODO (Before PR is merged): Make this glob less greedy.
"Red"*)
set_colors 1 7 3
ascii_file="redhat"
"NixOS"*)
set_colors 4 6
ascii_file="nixOS"
;;
"Kali"*)
set_colors 4 8
ascii_file="kali"
"openbsd_small")
set_colors 3 7 6 1 8
ascii_file="openbsd_small"
;;
"BunsenLabs"*)
set_colors fg 7
ascii_file="bunsenlabs"
"OpenBSD"*)
set_colors 3 7 6 1 8
ascii_file="openbsd"
;;
"OpenIndiana"*)
set_colors 4 7 1
ascii_file="openindiana"
;;
"OpenMandriva"*)
@ -2785,122 +2791,120 @@ get_distro_colors() {
ascii_file="openmadriva"
;;
"NetBSD"*)
set_colors 5 7
ascii_file="netbsd"
"OpenWrt"*)
set_colors 4 7 1
ascii_file="openwrt"
;;
"Parabola"*)
set_colors 5 7
ascii_file="parabola"
"Oracle"*)
set_colors 1 7 3
ascii_file="oracle"
;;
"Tails"*)
set_colors 5 7
ascii_file="tails"
"PacBSD"*)
set_colors 1 7 3
ascii_file="pacbsd"
;;
"BLAG"*)
"Parabola"*)
set_colors 5 7
ascii_file="blag"
ascii_file="parabola"
;;
"Funtoo"*)
set_colors 5 7
ascii_file="funtoo"
"Pardus"*)
set_colors 3 7 6 1 8
ascii_file="pardus"
;;
"SteamOS"*)
set_colors 5 7
ascii_file="steamos"
"Parrot"*)
set_colors 6 7
ascii_file="parrot"
;;
"Devuan"*)
set_colors 5 7
ascii_file="devuan"
"PCBSD"* | "TrueOS"*)
set_colors 1 7 3
ascii_file="trueos"
;;
"gentoo_small")
set_colors 5 7
ascii_file="gentoo_small"
"PCLinuxOS"*)
set_colors 4 7 1
ascii_file="pclinuxos"
;;
"Gentoo"*)
set_colors 5 7
ascii_file="gentoo"
"Peppermint"*)
set_colors 1 7 3
ascii_file="peppermint"
;;
"openbsd_small")
set_colors 3 7 6 1 8
ascii_file="openbsd_small"
"Porteus"*)
set_colors 6 7
ascii_file="porteus"
;;
"OpenBSD"*)
set_colors 3 7 6 1 8
ascii_file="openbsd"
"Puppy"* | "Quirky Werewolf"* | "Precise Puppy"*)
set_colors 4 7
ascii_file="puppy"
;;
"GuixSD"*)
set_colors 3 7 6 1 8
ascii_file="guixsd"
"Qubes"*)
set_colors 4 5 7 6
ascii_file="qubes"
;;
"Pardus"*)
set_colors 3 7 6 1 8
ascii_file="pardus"
"Raspbian"*)
set_colors 2 1
ascii_file="raspbian"
;;
"Manjaro"*)
set_colors 2 7
ascii_file="manjaro"
"Red Star"* | "Redstar"*)
set_colors 1 7 3
ascii_file="redstar"
;;
"Deepin"*)
set_colors 2 7
ascii_file="deepin"
# TODO (Before PR is merged): Make this glob less greedy.
"Red"*)
set_colors 1 7 3
ascii_file="redhat"
;;
"LMDE"*)
set_colors 2 7
ascii_file="lmde"
"Rosa"*)
set_colors 4 7 1
ascii_file="rosa"
;;
"Chapeau"*)
set_colors 2 7
ascii_file="chapeau"
"Sabayon"*)
set_colors 4 7 1
ascii_file="sabayon"
;;
"Bitrig"*)
set_colors 2 7
ascii_file="bitrig"
"SailfishOS"*)
set_colors 4 5 7 6
ascii_file="sailfishos"
;;
# TODO (Before PR is merged): Make this glob less greedy.
*"SUSE"*)
set_colors 2 7
ascii_distro="suse"
"SalentOS"*)
set_colors 2 1 3 7
ascii_file="salentos"
;;
"KDE"*)
set_colors 2 7
ascii_file="kde"
"Scientific"*)
set_colors 4 7 1
ascii_file="scientific"
;;
"Android"*)
set_colors 2 7
ascii_file="android"
ascii_length_force="19"
"Slackware"*)
set_colors 4 7 1
ascii_file="slackware"
;;
# TODO (Before PR is merged): Make this glob less greedy.
*"Mint"*)
set_colors 2 7
ascii_file="mint"
"SmartOS"*)
set_colors 6 7
ascii_file="smartos"
;;
"Puppy"* | "Quirky Werewolf"* | "Precise Puppy"*)
set_colors 4 7
ascii_file="puppy"
"Solus"*)
set_colors 4 7 1
ascii_file="solus"
;;
"Sparky"*)
@ -2908,29 +2912,25 @@ get_distro_colors() {
ascii_file="sparky"
;;
"Trisquel"*)
set_colors 4 6
ascii_file="trisquel"
;;
"NixOS"*)
set_colors 4 6
ascii_file="nixOS"
"SteamOS"*)
set_colors 5 7
ascii_file="steamos"
;;
"Zorin"*)
set_colors 4 6
ascii_file="zorin"
# TODO (Before PR is merged): Make this glob less greedy.
*"SUSE"*)
set_colors 2 7
ascii_distro="suse"
;;
"Antergos"*)
set_colors 4 6
ascii_file="antergos"
"SwagArch"*)
set_colors 4 7 1
ascii_file="swagarch"
;;
"MX"*)
set_colors 4 6 7
ascii_file="mx"
"Tails"*)
set_colors 5 7
ascii_file="tails"
;;
"Travis")
@ -2938,39 +2938,34 @@ get_distro_colors() {
ascii_file="travis"
;;
"Grombyang"*)
set_colors 4 2 1
ascii_file="grombyang"
;;
"Void"*)
set_colors 2 8
ascii_file="void"
"Trisquel"*)
set_colors 4 6
ascii_file="trisquel"
;;
"Haiku"*)
set_colors 2 8
ascii_file="haiku"
"Ubuntu-Budgie"*)
set_colors 4 7 1
ascii_file="ubuntu-budgie"
;;
"Mageia"*)
set_colors 6 7
ascii_file="mageia"
"Ubuntu-GNOME"*)
set_colors 4 5 7 6
ascii_file="ubuntu-gnome"
;;
"Porteus"*)
set_colors 6 7
ascii_file="porteus"
"ubuntu_old")
set_colors 1 7 3
ascii_file="ubuntu_old"
;;
"Parrot"*)
set_colors 6 7
ascii_file="parrot"
"Ubuntu"*)
set_colors 1 7 3
ascii_file="ubuntu"
;;
"SmartOS"*)
set_colors 6 7
ascii_file="smartos"
"Void"*)
set_colors 2 8
ascii_file="void"
;;
"Windows 8"* | "Windows 10"*)
@ -2983,33 +2978,38 @@ get_distro_colors() {
ascii_file="windows"
;;
*"OS X"* | *"iOS"* | "Mac" | *"macOS"*)
set_colors 2 3 1 1 5 4
ascii_file="mac"
"Xubuntu"*)
set_colors 4 7 1
ascii_file="xubuntu"
;;
"Linux")
set_colors fg 8 3
ascii_file="linux"
"Zorin"*)
set_colors 4 6
ascii_file="zorin"
;;
*)
case "$kernel_name" in
"Linux")
set_colors fg 8 3
ascii_file="linux"
;;
*"BSD")
set_colors 1 7 4 3 6
ascii_file="bsd"
;;
"Darwin")
set_colors 2 3 1 1 5 4
ascii_file="mac"
;;
"GNU"*)
set_colors fg
ascii_file="gnu"
;;
"Linux")
set_colors fg 8 3
ascii_file="linux"
;;
"SunOS")
set_colors 3
ascii_file="solaris"

Loading…
Cancel
Save