From 87753c5057632d6b7cffd5c6097d72f61b13a123 Mon Sep 17 00:00:00 2001 From: Fritz Geib <30505127+Fr1tzBot@users.noreply.github.com> Date: Fri, 11 Jun 2021 00:53:33 -0400 Subject: [PATCH] fix neofetch not recognizing brew package count on M1 macs (#1747) * fix neofetch not recognizing brew package count on M1 macs * fix apt package count issue --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index b8c72bb3..8aee9f8d 100755 --- a/neofetch +++ b/neofetch @@ -1522,7 +1522,7 @@ get_packages() { has kiss && tot kiss l has cpt-list && tot cpt-list has pacman-key && tot pacman -Qq --color never - has apt && tot apt list + has apt && tot apt list --installed && ((packages-=1)) has rpm && tot rpm -qa has xbps-query && tot xbps-query -l has apk && tot apk info @@ -1610,7 +1610,7 @@ get_packages() { "Mac OS X"|"macOS"|MINIX) has port && pkgs_h=1 tot port installed && ((packages-=1)) - has brew && dir /usr/local/Cellar/* + has brew && dir "$(brew --cellar)"/* has pkgin && tot pkgin list has nix-store && {