Merge pull request #422 from JorgeGonzalez/master

Add initial support for HyperTerm
This commit is contained in:
Dylan Araps 2016-11-05 09:03:20 +11:00 committed by GitHub
commit 6fdfb0c788
1 changed files with 5 additions and 0 deletions

View File

@ -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^}"