revert iterm2 profile parsing
This commit is contained in:
parent
7ed11db606
commit
3f2d51ae5a
1 changed files with 1 additions and 2 deletions
3
neofetch
3
neofetch
|
@ -1799,8 +1799,7 @@ gettermfont () {
|
|||
|
||||
"iTerm2")
|
||||
termfile="$(/usr/libexec/plistbuddy -c Print ~/Library/Preferences/com.googlecode.iterm2.plist)"
|
||||
termfont="$(awk -v pattern="Name = $ITERM_PROFILE" -F '= ' '$0 ~ pattern {printf $2 " "} /Normal Font/ {printf $2 " "}' <<< "$termfile")"
|
||||
termfont=${termfont/ $ITERM_PROFILE*}
|
||||
termfont="$(awk -F '= ' '/Normal Font/ {printf $2; exit}' <<< "$termfile")"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue