Remove all whitespace from terminal name

This commit is contained in:
Dylan Araps 2016-05-28 11:19:24 +10:00
parent 5a99cb5237
commit f2eb877bae

View file

@ -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" ;;