Skip to content

Commit

Permalink
[PR] dylanaraps#2424 from geaaru - Add Macaroni OS
Browse files Browse the repository at this point in the history
Upstream PR: dylanaraps#2424
Thanks to @geaaru

Co-authored-by: Daniele Rondina <[email protected]>
  • Loading branch information
hykilpikonna and geaaru committed Dec 22, 2023
2 parents caa1547 + 8edddea commit 2c33e7e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,17 @@ get_distro() {
esac
fi

elif type -p anise >/dev/null; then
for file in /etc/lsb-release /etc/os-release ; do
source "$file"
done

case $distro_shorthand in
on|tiny) distro="${NAME:-${DISTRIB_DESCRIPTION:-MacaroniOS}}" ;;
*)
distro="${NAME:-${DISTRIB_DESCRIPTION:-MacaroniOS}} ${VERSION:-${DISTRIB_RELEASE}}"
esac

elif type -p lsb_release >/dev/null; then
# Debian does not include .x versions in /etc/os-version, but does in debian_version
# So if that file exists, and we are not *buntu, build name from there
Expand Down Expand Up @@ -2075,6 +2086,7 @@ get_packages() {
has evox && tot cat /var/evox/packages/DB
has squirrel && tot ls /var/packages
has tea && tot find "$HOME/.tea" -maxdepth 2 -mindepth 2 -type d
has anise && tot anise s --installed

# Using the dnf package cache is much faster than rpm.
if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
Expand Down Expand Up @@ -10900,6 +10912,35 @@ ${c3} __
EOF
;;

"MacaroniOS"* | "Macaroni OS"*)

set_colors 2 3 15 14
read -rd '' ascii_data <<'EOF'
${c2}
-=+++==--::.. .-+++==-:.
.:--:-=++==-:. :=*+=--==+***######**+-:
.---:-===-----===+++==-:.. :=+=--=+*****+++*****#%%%#-
.=*********+++========+++++=--:. .:-=+++++++=-:.. .=*=::.
:-=-. .:::---===+++++++++++*******++====+**+++=-:. :+*-..
.. -++ ..:--==+***********=:. -*=
. :+. . ${c3}...${c2} .:--===:. .++
.*: . ${c3}:+#%%@@%%#=: ${c2}--
${c2}-= ${c3}-#@@@@@@@@@@@@#: ${c2}.
${c3}:*%@%%@@@@@@@@@@@%+ .:--====-:.
:*%%%%%%%%%@@@@@@@@@*. :=*#%%%%@@@@@%#+-
.*%%%%%%%%%%%%%@@#+--=- -*%%%%%%%%%%%@@@@@%#=
-#%%%%%%%%%%%%%#: :+: :+%*#%%%%%%%%%%%%%%%%%*.
+%%%%%%%%%%%%%%: .#*: *+-*%%%%%%%%%%%%%%%%%+
+%%%%%%%%%%%%%# . . . :%%%%%%%%%%%%%%%%%#.
=#%%%%%%%%%%%%# . . =%%%%%%%%%%%%%%%%%*.
.*%%%%%%%%%%%%%* : =%%%%%%%%%%%%%%%%%#-
:#%%%%%%%%%%%%%#=.... .=*%%%%%%%%%%%%%%%%%%*:
:*%@@%%%%%%%%%%%%#+. :+#%%%%%%%%%%%%%#*-
=*%%@@%%%%%%%#*- .-=+**##**+=:
:=*######+=:
EOF
;;

"mac"*"_small")
set_colors 2 3 1 5 4
read -rd '' ascii_data <<'EOF'
Expand Down

0 comments on commit 2c33e7e

Please sign in to comment.