Skip to content

Commit 0729e40

Browse files
committed
simplify iterm profile check
1 parent 598731b commit 0729e40

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

neofetch

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3384,12 +3384,7 @@ END
33843384
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
33853385
local current_profile_name profiles_count profile_name diff_font
33863386

3387-
current_profile_name="$(osascript <<END
3388-
tell application "iTerm2" to profile name \
3389-
of current session of current window
3390-
END
3391-
)"
3392-
3387+
current_profile_name=$ITERM_PROFILE
33933388
# Warning: Dynamic profiles are not taken into account here!
33943389
# https://www.iterm2.com/documentation-dynamic-profiles.html
33953390
font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist"

0 commit comments

Comments
 (0)