diff --git a/neofetch b/neofetch index c79962d1..48960328 100755 --- a/neofetch +++ b/neofetch @@ -399,6 +399,12 @@ get_packages() { type -p cave >/dev/null && \ packages="$((packages+=$(ls -d -1 /var/db/paludis/repositories/cross-installed/*/data/* /var/db/paludis/repositories/installed/data/* | wc -l)))" + type -p lvu >/dev/null && \ + packages="$((packages+=$(lvu installed | wc -l)))" + + type -p tce-status >/dev/null && \ + packages="$((packages+=$(tce-status -i | wc -l)))" + # pisi is sometimes unavailable in Solus(?). This uses eopkg # instead if pisi isn't found. if type -p pisi >/dev/null; then @@ -412,12 +418,6 @@ 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")