[PR] dylanaraps/neofetch#2396 from malik1004x - No Hackintosh check on arm64

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2396
Thanks to @malik1004x

Co-authored-by: malik <malikowskirobert@gmail.com>
This commit is contained in:
Azalea 2023-10-12 17:46:17 -04:00
commit 81134bbb34

View file

@ -1533,7 +1533,7 @@ get_model() {
;; ;;
"Mac OS X"|"macOS"|"ravynOS") "Mac OS X"|"macOS"|"ravynOS")
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC" -e "Lilu") != "" ]]; then if [ "$(arch)" != "arm64" ] && [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC" -e "Lilu") != "" ]]; then
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))" model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
else else
if [[ $osx_version == 10.[4-5]* ]]; then if [[ $osx_version == 10.[4-5]* ]]; then
@ -4461,12 +4461,7 @@ END
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg # See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
local current_profile_name profiles_count profile_name diff_font local current_profile_name profiles_count profile_name diff_font
current_profile_name="$(osascript <<END current_profile_name=$ITERM_PROFILE
tell application "iTerm2" to profile name \
of current session of current window
END
)"
# Warning: Dynamic profiles are not taken into account here! # Warning: Dynamic profiles are not taken into account here!
# https://www.iterm2.com/documentation-dynamic-profiles.html # https://www.iterm2.com/documentation-dynamic-profiles.html
font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist" font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist"