File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments