simplify iterm profile check

This commit is contained in:
malik 2023-10-12 13:40:40 +02:00
parent 598731bf89
commit 0729e40e00

View file

@ -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"