mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-11 16:28:16 +00:00
termfont: iTerm2 profile aware font
This commit is contained in:
3
neofetch
3
neofetch
@@ -1799,7 +1799,8 @@ gettermfont () {
|
||||
|
||||
"iTerm2")
|
||||
termfile="$(/usr/libexec/plistbuddy -c Print ~/Library/Preferences/com.googlecode.iterm2.plist)"
|
||||
termfont="$(awk -F '= ' '/Normal Font/ {printf $2; exit}' <<< "$termfile")"
|
||||
termfont="$(awk -v pattern="Name = $ITERM_PROFILE" -F '= ' '$0 ~ pattern {printf $2 " "} /Normal Font/ {printf $2 " "}' <<< "$termfile")"
|
||||
termfont=${termfont/ $ITERM_PROFILE*}
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user