From 7862e3af5a14bfe0c3cf08130e18252cb1c02343 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 21 Oct 2016 09:15:03 +1100 Subject: [PATCH] Fix bugs --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index cd3e9a8a..8fc0ef72 100755 --- a/neofetch +++ b/neofetch @@ -465,6 +465,8 @@ getpackages() { packages="$(pkg list | wc -l)" ;; esac + + [ "$packages" == "0" ] && unset packages } # }}} @@ -1597,7 +1599,7 @@ getterm() { case "${name// }" in "${SHELL/*\/}" | *"sh" | "tmux"* | "screen") getterm "$parent" ;; "login" | "init") term="$(tty)" ;; - "ruby" | "1" | "systemd" | "sshd"* | "python"*) unset term ;; + "ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER PID"*) unset term ;; "gnome-terminal-") term="gnome-terminal" ;; *) term="${name##*/}" ;; esac