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