From 87fb0fd5eaa3e8e29c3a9880000a3033a12845e8 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Fri, 18 Nov 2016 21:41:11 +0700 Subject: [PATCH] Packages: Added package detection for Lunar Linux and TinyCore --- neofetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neofetch b/neofetch index 5940409e..137e3c1e 100755 --- a/neofetch +++ b/neofetch @@ -412,6 +412,12 @@ get_packages() { packages="$((packages+=$(ls -1 /var/db/pkg | wc -l)))" (("$packages" == "0")) && packages="$((packages+=$(pkg list | wc -l)))" fi + + type -p lvu >/dev/null && \ + packages="$((packages+=$(lvu installed | wc -l)))" + + type -p tce-status >/dev/null && \ + packages="$((packages+=$(tce-status -i | wc -l)))" ;; "Mac OS X")