From 0e93f5484f91999744929629fdce6b3496730d4a Mon Sep 17 00:00:00 2001 From: Jack Gannon Date: Sun, 13 Nov 2022 16:06:20 +0000 Subject: [PATCH 1/2] enso distro addition --- neofetch | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 48b96d21..7eb0a84d 100755 --- a/neofetch +++ b/neofetch @@ -788,7 +788,7 @@ image_source="auto" # Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, Condres, # Container_Linux, Crystal Linux, CRUX, Cucumber, dahlia, Debian, Deepin, # DesaOS, Devuan, DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary, -# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD, +# EndeavourOS, Endless, Enso, EuroLinux, Exherbo, Fedora, Feren, FreeBSD, # FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, # gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, HydroOS # Hyperbola, iglunix, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, Korora, @@ -1096,6 +1096,7 @@ get_distro() { # Workarounds for some BSD based distros. [[ -f /etc/pcbsd-lang ]] && distro=PCBSD [[ -f /etc/trueos-lang ]] && distro=TrueOS + [[ -f /etc/os-release ]] && distro=Enso [[ -f /etc/pacbsd-release ]] && distro=PacBSD [[ -f /etc/hbsd-update.conf ]] && distro=HardenedBSD fi @@ -5148,7 +5149,7 @@ ASCII: Cleanjaro, ClearOS, Clear_Linux, Clover, Condres, Container_Linux, Crystal Linux, CRUX, Cucumber, dahlia, Debian, Deepin, DesaOS, Devuan, DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary, EndeavourOS, Endless, - EuroLinux, Exherbo, Fedora, Feren, FreeBSD, FreeMiNT, Frugalware, + Enso, EuroLinux, Exherbo, Fedora, Feren, FreeBSD, FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, Hyperbola, iglunix, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, Korora, KSLinux, Kubuntu, LEDE, @@ -7349,6 +7350,32 @@ dMm `/++/-``/yNNh+/sdNMNddMm- mMd EOF ;; + "Enso"*) + set_colors 8 7 + read -rd '' ascii_data <<'EOF' +${c1} + .:--==--:. + :=*#%%%%%%%#####*+-. + .+%%%%%%%%%%%%###%%#*##*: + .*%%%%%%%%%#+==-==++*####*##- + =%%%%%%%#=: .-+**#***. + *%%%%%%#- ++*#**. + +%%%%%%+ -*+#** + :%%%%%%* .*+**= + *%%%%%%: --#*# + %%%%%%% +++#. + %%%%%%%. ++=*. + *%%%%%%+ .-+*+ + :%%%%%%%- -:*+: + =%%%%%%%*. :.*+- + +%%%%%%%%*- :*=- + =%%%%%%%%%%#+=: =+=: + .+%%%%%%%%%%%%%. .-==: + .=#%%%%%%%%%%= ..:--:. + .-+#%%%%%+ +EOF + ;; + "EuroLinux"*) set_colors 4 7 read -rd '' ascii_data <<'EOF' From 8d9d4407a372e7532ecc9af5bc6925a81faaad3a Mon Sep 17 00:00:00 2001 From: Jack Gannon Date: Sun, 13 Nov 2022 16:18:30 +0000 Subject: [PATCH 2/2] syntax --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 7eb0a84d..495fdcf0 100755 --- a/neofetch +++ b/neofetch @@ -1094,9 +1094,9 @@ get_distro() { distro=${distro/DragonFly/DragonFlyBSD} # Workarounds for some BSD based distros. + [[ -f /etc/os-release ]] && distro=Enso [[ -f /etc/pcbsd-lang ]] && distro=PCBSD [[ -f /etc/trueos-lang ]] && distro=TrueOS - [[ -f /etc/os-release ]] && distro=Enso [[ -f /etc/pacbsd-release ]] && distro=PacBSD [[ -f /etc/hbsd-update.conf ]] && distro=HardenedBSD fi