Commit d1b2b282 authored by Dylan Araps's avatar Dylan Araps

Remove path from terminal name

parent 2e883791
......@@ -1580,10 +1580,10 @@ getterm() {
case "${name// }" in
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen") getterm "$parent" ;;
"login" | "init") term="$(tty)"; term="${term/*\/}" ;;
"login" | "init") term="$(tty)" ;;
"ruby" | "1" | "systemd" | "sshd"* | "python"*) unset term ;;
"gnome-terminal-") term="gnome-terminal" ;;
*) term="$name" ;;
*) term="${name##*/}" ;;
esac
[ "$version" -ge 4 ] && term="${term^}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment