From eec7f08eee961462e5c0fa7b2582a57b991cd1c5 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Thu, 2 Mar 2017 01:50:17 +0100 Subject: [PATCH] Add warning about possible profile name collisions --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index 2d75b0da..9d54041e 100755 --- a/neofetch +++ b/neofetch @@ -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