mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 12:37:16 +00:00
Add warning that false positives can occur
This commit is contained in:
6
neofetch
6
neofetch
@@ -1655,6 +1655,12 @@ get_term_font() {
|
|||||||
# "Normal Font"
|
# "Normal Font"
|
||||||
term_font=$(/usr/libexec/PlistBuddy -c "Print :New\ Bookmarks:${idx}:Normal\ Font:" ~/Library/Preferences/com.googlecode.iterm2.plist)
|
term_font=$(/usr/libexec/PlistBuddy -c "Print :New\ Bookmarks:${idx}:Normal\ Font:" ~/Library/Preferences/com.googlecode.iterm2.plist)
|
||||||
# Font for non-ascii characters
|
# Font for non-ascii characters
|
||||||
|
# This font setting may differ from normal font, but this might be a false
|
||||||
|
# positive, as there is a setting to use a different font for non-ascii
|
||||||
|
# characters and this setting does not get updated when flipping the switch.
|
||||||
|
# So it might be that the user checked the mark to use a different font,
|
||||||
|
# selected one, but then decided to uncheck the "use different font" mark
|
||||||
|
# again.
|
||||||
local nonAsciiFont=$(/usr/libexec/PlistBuddy -c "Print :New\ Bookmarks:${idx}:Non\ Ascii\ Font:" ~/Library/Preferences/com.googlecode.iterm2.plist)
|
local nonAsciiFont=$(/usr/libexec/PlistBuddy -c "Print :New\ Bookmarks:${idx}:Non\ Ascii\ Font:" ~/Library/Preferences/com.googlecode.iterm2.plist)
|
||||||
if [[ "$term_font" -ne "$nonAsciiFont" ]]; then
|
if [[ "$term_font" -ne "$nonAsciiFont" ]]; then
|
||||||
term_font="$term_font (normal) / $nonAsciiFont (non-ascii)"
|
term_font="$term_font (normal) / $nonAsciiFont (non-ascii)"
|
||||||
|
|||||||
Reference in New Issue
Block a user