mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Add warning about possible profile name collisions
This commit is contained in:
4
neofetch
4
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
|
||||
|
Reference in New Issue
Block a user