From d1b2b2828fbbca78e3627ea4dff4db19f12c077d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 18 Oct 2016 08:23:03 +1100 Subject: [PATCH] Remove path from terminal name --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 30f2f561..78661991 100755 --- a/neofetch +++ b/neofetch @@ -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^}"