Skip to content

Commit 81134bb

Browse files
[PR] dylanaraps/neofetch#2396 from malik1004x - No Hackintosh check on arm64
Upstream PR: dylanaraps/neofetch#2396 Thanks to @malik1004x Co-authored-by: malik <malikowskirobert@gmail.com>
2 parents afcf53f + 0729e40 commit 81134bb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

neofetch

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ get_model() {
15331533
;;
15341534

15351535
"Mac OS X"|"macOS"|"ravynOS")
1536-
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC" -e "Lilu") != "" ]]; then
1536+
if [ "$(arch)" != "arm64" ] && [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC" -e "Lilu") != "" ]]; then
15371537
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
15381538
else
15391539
if [[ $osx_version == 10.[4-5]* ]]; then
@@ -4461,12 +4461,7 @@ END
44614461
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
44624462
local current_profile_name profiles_count profile_name diff_font
44634463

4464-
current_profile_name="$(osascript <<END
4465-
tell application "iTerm2" to profile name \
4466-
of current session of current window
4467-
END
4468-
)"
4469-
4464+
current_profile_name=$ITERM_PROFILE
44704465
# Warning: Dynamic profiles are not taken into account here!
44714466
# https://www.iterm2.com/documentation-dynamic-profiles.html
44724467
font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist"

0 commit comments

Comments
 (0)