From a63a6a6b1de0e614db373e7bbeeb90790f1be086 Mon Sep 17 00:00:00 2001 From: Jorge Gonzalez Date: Fri, 4 Nov 2016 17:44:12 -0400 Subject: [PATCH 1/2] macOS Sierra (HyperTerm): Add terminal detection --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 13b05887..05a1b3cd 100755 --- a/neofetch +++ b/neofetch @@ -1461,6 +1461,7 @@ getterm() { case "$TERM_PROGRAM" in "iTerm.app") term="iTerm2" ;; "Terminal.app") term="Apple Terminal" ;; + "Hyper") term="HyperTerm" ;; *) term="${TERM_PROGRAM/\.app}" ;; esac return From 1830f9651bda5e6ccc9a0f045496a1ad1f56dc47 Mon Sep 17 00:00:00 2001 From: Jorge Gonzalez Date: Fri, 4 Nov 2016 17:44:44 -0400 Subject: [PATCH 2/2] macOS Sierra (HyperTerm): Add termfont detection --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index 05a1b3cd..7047a54b 100755 --- a/neofetch +++ b/neofetch @@ -1541,6 +1541,10 @@ gettermfont() { termfont="${termfont/.pcf}" termfont="${termfont/:*}" ;; + + "HyperTerm") + termfont="$(awk -F "," '/fontFamily/ {a=$1} END{print a}' "${HOME}/.hyper.js" | awk -F "'" '{a=$2} END{print a}')" + ;; esac [ "$version" -ge 4 ] && termfont="${termfont^}"