Add warning about possible profile name collisions

This commit is contained in:
Dominik Ritter 2017-03-02 01:50:17 +01:00
parent 4387233378
commit eec7f08eee
1 changed files with 4 additions and 0 deletions

View File

@ -1645,6 +1645,10 @@ get_term_font() {
;;
"iTerm2")
# Unfortunately the profile name is not unique, but it seems to be the only thing
# that identifies an active profile. There is the "id of current session of current window"
# thou, but that does not match to a guid in the plist.
# So, be warned! Collisions may occur!
local currentProfileName=$(osascript -e 'tell application "iTerm2" to profile name of current session of current window')
# Count Guids in "New Bookmarks"; they should be unique