Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

No Hackintosh check on arm64 #2396

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ get_model() {
;;

"Mac OS X"|"macOS")
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC") != "" ]]; then
if [ "$(arch)" != "arm64" ] && [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC") != "" ]]; then
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
else
model=$(sysctl -n hw.model)
Expand Down Expand Up @@ -3384,12 +3384,7 @@ END
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
local current_profile_name profiles_count profile_name diff_font

current_profile_name="$(osascript <<END
tell application "iTerm2" to profile name \
of current session of current window
END
)"

current_profile_name=$ITERM_PROFILE
# Warning: Dynamic profiles are not taken into account here!
# https://www.iterm2.com/documentation-dynamic-profiles.html
font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist"
Expand Down