simplify iterm profile check
This commit is contained in:
@@ -3384,12 +3384,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"
|
||||||
|
|||||||
Reference in New Issue
Block a user