Merge pull request #263 from iandrewt/term_font_osx

added apple terminal font support
This commit is contained in:
Dylan Araps 2016-05-23 22:51:14 +10:00
commit 54b6491430
1 changed files with 4 additions and 0 deletions

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
}