From c5b88c68a9d9a6ca6af4ebeb557ad771da420bf1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 3 Jun 2016 18:08:19 +1000 Subject: [PATCH] If the parent process is python, exit the function --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 00ff1ca5..7642237c 100755 --- a/neofetch +++ b/neofetch @@ -1770,7 +1770,7 @@ getterm () { case "${name// }" in "${SHELL/*\/}" | *"sh" | "tmux" | "screen") getterm "$parent" ;; "login" | "init") term="$(tty)"; term=${term/*\/} ;; - "ruby" | "1" | "systemd" | "sshd") unset term ;; + "ruby" | "1" | "systemd" | "sshd" | "python"*) unset term ;; "gnome-terminal-") term="gnome-terminal" ;; *) term="$name" ;; esac