Add warning about iTerm2s dynamic profiles

This commit is contained in:
Dominik Ritter 2017-03-02 02:30:53 +01:00
parent d1e81f3344
commit 38641c690e

View file

@ -1652,6 +1652,9 @@ get_term_font() {
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
local currentProfileName=$(osascript -e 'tell application "iTerm2" to profile name of current session of current window')
# Warning: Dynamic profiles are not taken into account here!
# https://www.iterm2.com/documentation-dynamic-profiles.html
# Count Guids in "New Bookmarks"; they should be unique
local profilesCount=$(/usr/libexec/PlistBuddy -c "Print :New\ Bookmarks:" ~/Library/Preferences/com.googlecode.iterm2.plist | grep "Guid" | wc -l)
for idx in $(seq 0 ${profilesCount}); do