Commit 6fdfb0c7 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #422 from JorgeGonzalez/master

Add initial support for HyperTerm
parents fa1a14f8 1830f965
...@@ -1461,6 +1461,7 @@ getterm() { ...@@ -1461,6 +1461,7 @@ getterm() {
case "$TERM_PROGRAM" in case "$TERM_PROGRAM" in
"iTerm.app") term="iTerm2" ;; "iTerm.app") term="iTerm2" ;;
"Terminal.app") term="Apple Terminal" ;; "Terminal.app") term="Apple Terminal" ;;
"Hyper") term="HyperTerm" ;;
*) term="${TERM_PROGRAM/\.app}" ;; *) term="${TERM_PROGRAM/\.app}" ;;
esac esac
return return
...@@ -1540,6 +1541,10 @@ gettermfont() { ...@@ -1540,6 +1541,10 @@ gettermfont() {
termfont="${termfont/.pcf}" termfont="${termfont/.pcf}"
termfont="${termfont/:*}" termfont="${termfont/:*}"
;; ;;
"HyperTerm")
termfont="$(awk -F "," '/fontFamily/ {a=$1} END{print a}' "${HOME}/.hyper.js" | awk -F "'" '{a=$2} END{print a}')"
;;
esac esac
[ "$version" -ge 4 ] && termfont="${termfont^}" [ "$version" -ge 4 ] && termfont="${termfont^}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment