Fix trailing '-' with gnome-terminal

This commit is contained in:
Dylan Araps 2016-06-02 21:14:19 +10:00
parent 37e7d8e4b3
commit c1450f8288
No known key found for this signature in database
GPG Key ID: B69EE98D4CF5133A
1 changed files with 1 additions and 0 deletions

View File

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