Skip to content

Commit fa52cd4

Browse files
hykilpikonnamszoek
andcommitted
[PR] dylanaraps/neofetch#2182 from mszoek - Add ravynOS platform
Upstream PR: dylanaraps/neofetch#2182 Thanks to @mszoek Co-authored-by: Zoe Knox <[email protected]>
2 parents 1e1cddc + 5966bd0 commit fa52cd4

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

neofetch

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,14 @@ get_distro() {
987987
*) distro=$(< /bedrock/etc/bedrock-release)
988988
esac
989989

990+
elif [[ -f /System/Library/CoreServices/SystemVersion.plist ]]; then
991+
os=ravynOS
992+
ascii_distro="ravynOS"
993+
case $distro_shorthand in
994+
tiny) distro="$darwin_name" ;;
995+
on) distro="$darwin_name $osx_version" ;;
996+
*) distro="$darwin_name $darwin_family $osx_version"
997+
esac
990998
elif [[ -f /etc/redstar-release ]]; then
991999
case $distro_shorthand in
9921000
on|tiny) distro="Red Star OS" ;;
@@ -1357,7 +1365,7 @@ get_model() {
13571365
fi
13581366
;;
13591367

1360-
"Mac OS X"|"macOS")
1368+
"Mac OS X"|"macOS"|"ravynOS")
13611369
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC" -e "Lilu") != "" ]]; then
13621370
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
13631371
else
@@ -1658,7 +1666,7 @@ get_uptime() {
16581666
fi
16591667
;;
16601668

1661-
"Mac OS X"|"macOS"|"iPhone OS"|BSD|FreeMiNT)
1669+
"Mac OS X"|"macOS"|"ravynOS"|"iPhone OS"|BSD|FreeMiNT)
16621670
boot=$(sysctl -n kern.boottime)
16631671
boot=${boot/\{ sec = }
16641672
boot=${boot/,*}
@@ -2028,6 +2036,8 @@ get_de() {
20282036
case $os in
20292037
"Mac OS X"|"macOS") de=Aqua ;;
20302038

2039+
"ravynOS") de=Magma ;;
2040+
20312041
Windows)
20322042
case $distro in
20332043
*"Windows 10"*|*"Windows 11"*)
@@ -3069,7 +3079,7 @@ get_memory() {
30693079
fi
30703080
;;
30713081

3072-
"BSD" | "MINIX")
3082+
"BSD" | "MINIX" | "ravynOS")
30733083
# Mem total.
30743084
case $kernel_name in
30753085
"NetBSD"*) mem_total="$(($(sysctl -n hw.physmem64) / 1024 / 1024))" ;;
@@ -5531,7 +5541,8 @@ cache_uname() {
55315541
kernel_version="${uname[1]}"
55325542
kernel_machine="${uname[2]}"
55335543

5534-
if [[ "$kernel_name" == "Darwin" ]]; then
5544+
if [[ "$kernel_name" == "Darwin" ]] ||
5545+
[[ "$kernel_name" == "FreeBSD" && -f /System/Library/CoreServices/SystemVersion.plist ]]; then
55355546
# macOS can report incorrect versions unless this is 0.
55365547
# https://github.com/dylanaraps/neofetch/issues/1607
55375548
export SYSTEM_VERSION_COMPAT=0
@@ -5541,6 +5552,7 @@ cache_uname() {
55415552
for ((i=0;i<${#sw_vers[@]};i+=2)) {
55425553
case ${sw_vers[i]} in
55435554
ProductName) darwin_name=${sw_vers[i+1]} ;;
5555+
ProductFamily) darwin_family=${sw_vers[i+1]} ;;
55445556
ProductVersion) osx_version=${sw_vers[i+1]} ;;
55455557
ProductBuildVersion) osx_build=${sw_vers[i+1]} ;;
55465558
esac
@@ -11300,6 +11312,32 @@ ${c1} `.::///+:/-. --///+//-:``
1130011312
EOF
1130111313
;;
1130211314

11315+
"ravynOS")
11316+
set_colors 15
11317+
read -rd '' ascii_data <<'EOF'
11318+
${c1} ..oooo..
11319+
.o$$$$$$$$$$$$$$o.
11320+
od$$$$$$$$$$$$$$$$$$$$$o
11321+
o$$$$$$$$$$$$$$$$$$$$$$$$$$o
11322+
.$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.
11323+
d$$$$$$$$$********$$$$$$$$$$$$$$$b
11324+
d$$$$$$$* °****?$$$$$$$$b
11325+
$$$$$$* °$$$$$$$
11326+
d$$** .oo$$$$$$$$b
11327+
*° o$$$$$$$$$$$$$$
11328+
o$$$$$$$$$$$$$$$$
11329+
o$$$$$$$$$$$$$$$$$P
11330+
*$$$$$$$$$$$$$$$$$
11331+
?$$$$$$$$$$$$$$P
11332+
$$$$$$$$$$$$$P
11333+
$$$$$$$$$$$$P
11334+
?$$$$$$$$$$*
11335+
$$$$$$$*°
11336+
d$$$$*°
11337+
°
11338+
EOF
11339+
;;
11340+
1130311341
"Reborn OS"* | "Reborn"*)
1130411342
set_colors 2 2 8
1130511343
read -rd '' ascii_data <<'EOF'

0 commit comments

Comments
 (0)