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