term: Add support for tty

This commit is contained in:
Dylan Araps 2016-05-28 11:16:13 +10:00
parent fd30321120
commit 5a99cb5237

View file

@ -1767,6 +1767,7 @@ getterm () {
case "$name" in
"${SHELL/*\/}" | *"sh" | "tmux" | "screen" | "systemd") getterm "$parent" ;;
"login" | "init") term="$(tty)"; term=${term/*\/} ;;
*) term="$name" ;;
esac
fi