added apple terminal font support

This commit is contained in:
Andrew Titmuss 2016-05-23 12:35:47 +10:00
parent d504968041
commit 184149c302
No known key found for this signature in database
GPG key ID: AA0700CD38874B54

View file

@ -1807,6 +1807,10 @@ gettermfont () {
"mintty")
termfont="$(awk -F '=' '!/^($|#)/ && /Font/ {printf $2; exit}' "${HOME}/.minttyrc")"
;;
"Apple_Terminal")
termfont="$(osascript -e 'tell application "Terminal" to font name of window frontmost')"
;;
esac
}