From 956c79d0dea0ed4f68eaa3e27b8dcf6ae35f75de Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Fri, 2 Dec 2016 18:18:55 +0700 Subject: [PATCH] Distro: Added support for GoboLinux --- neofetch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/neofetch b/neofetch index c6bc3298..ac1c4ebe 100755 --- a/neofetch +++ b/neofetch @@ -52,6 +52,12 @@ get_distro() { esac ascii_distro="Windows 10" + elif [[ -f "/etc/GoboLinuxVersion" ]]; then + case "$distro_shorthand" in + "on" | "tiny") distro="GoboLinux" ;; + *) distro="GoboLinux $(< /etc/GoboLinuxVersion)" + esac + elif [[ -f "/etc/redstar-release" ]]; then case "$distro_shorthand" in "on" | "tiny") distro="Red Star OS" ;; @@ -410,6 +416,9 @@ get_packages() { type -p tce-status >/dev/null && \ packages="$((packages+=$(tce-status -i | wc -l)))" + type -p Compile >/dev/null && \ + packages="$((packages+=$(ls -d -1 /Programs/*/ | wc -l)))" + # pisi is sometimes unavailable in Solus(?). This uses eopkg # instead if pisi isn't found. if type -p pisi >/dev/null; then