From 6e8ff7b59fb3a978592a80b813784b6014182217 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 25 Nov 2016 18:54:19 +1100 Subject: [PATCH] Term: Find parent of 'su' --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 5b7deb6f..683b0650 100755 --- a/neofetch +++ b/neofetch @@ -1496,7 +1496,7 @@ get_term() { esac case "${name// }" in - "${SHELL/*\/}" | *"sh" | "tmux"* | "screen") get_term "$parent" ;; + "${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su") get_term "$parent" ;; "login"* | *"Login"* | "init") term="$(tty)" ;; "ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) unset term ;; "gnome-terminal-") term="gnome-terminal" ;;