diff --git a/neofetch b/neofetch index 9df45df9..25c4a010 100755 --- a/neofetch +++ b/neofetch @@ -1308,7 +1308,7 @@ get_packages() { "Mac OS X" | "MINIX") pkgs "port" "$(port installed | wc -l) - 1" - pkgs "brew" "$(find /usr/local/Cellar -maxdepth 1 | wc -l) - 1" + pkgs "brew" "$(files=(/usr/local/Cellar/*) && ((packages+=${#files[@]}))) - 1" pkgs "pkgin" "$(pkgin list | wc -l)" ;;