simplify iterm profile check
This commit is contained in:
parent
598731bf89
commit
0729e40e00
1 changed files with 1 additions and 6 deletions
7
neofetch
7
neofetch
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue