Merge pull request #422 from JorgeGonzalez/master
Add initial support for HyperTerm
This commit is contained in:
commit
6fdfb0c788
1 changed files with 5 additions and 0 deletions
5
neofetch
5
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
|
||||
|
@ -1540,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^}"
|
||||
|
|
Loading…
Reference in a new issue