From a60cf636f69b71b23b8ba2884ba453b067e30156 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 24 Dec 2016 19:50:44 +1100 Subject: [PATCH] Update neofetch --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 4d70991f..4e41b708 100755 --- a/neofetch +++ b/neofetch @@ -1514,7 +1514,6 @@ get_term() { "Hyper") term="HyperTerm" ;; *) term="${TERM_PROGRAM/\.app}" ;; esac - [[ "$TERM_PROGRAM" ]] && return # Check $PPID for terminal emulator. while [[ -z "$term" ]]; do @@ -1524,7 +1523,7 @@ get_term() { case "${name// }" in "${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su") ;; "login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;; - "ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) unset term; break ;; + "ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) break ;; "gnome-terminal-") term="gnome-terminal" ;; *) term="${name##*/}" ;; esac