From 3f2d51ae5af394b3bda6666dce8661223d494175 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 17 May 2016 21:12:38 +1000 Subject: [PATCH] revert iterm2 profile parsing --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 7427abca..c283004f 100755 --- a/neofetch +++ b/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 }