Revert last two commits

This commit is contained in:
Dylan Araps 2016-05-28 10:27:58 +10:00
parent 8d33b4051f
commit ec1705835c

View file

@ -1739,16 +1739,17 @@ getfont () {
# Terminal Emulator {{{
getterm () {
# Check $PPID for terminal emulator.
case "$os" in
"Mac OS X")
# Workaround for OS X systems that
# don't support the block below.
case "$TERM_PROGRAM" in
"iTerm.app") term="iTerm2" ;;
"Terminal.app") term="Apple Terminal" ;;
*) term="${TERM_PROGRAM/\.app}" ;;
esac
;;
# Check $PPID for terminal emulator.
if [ -z "$term" ]; then
case "$os" in
"Windows")
parent="$(ps -p ${1:-$PPID} | awk '{printf $2}')"
parent=${parent/'PPID'}
@ -1768,6 +1769,7 @@ getterm () {
"${SHELL/*\/}" | *"sh" | "tmux" | "screen" | "systemd") getterm "$parent" ;;
*) term="$name" ;;
esac
fi
}
# }}}