From 38641c690e101e13b2bc4d2bc50b02f10cb60421 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Thu, 2 Mar 2017 02:30:53 +0100 Subject: [PATCH] Add warning about iTerm2s dynamic profiles --- neofetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neofetch b/neofetch index d6375e9c..f5162593 100755 --- a/neofetch +++ b/neofetch @@ -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