Fix terminal output on android

This commit is contained in:
Dylan Araps 2016-10-21 14:45:36 +11:00
parent 7862e3af5a
commit e5359dc314

View file

@ -1599,7 +1599,7 @@ getterm() {
case "${name// }" in
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen") getterm "$parent" ;;
"login" | "init") term="$(tty)" ;;
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER PID"*) unset term ;;
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) unset term ;;
"gnome-terminal-") term="gnome-terminal" ;;
*) term="${name##*/}" ;;
esac