From 9bf46946b6a11be5805b8996560a4ec247621dce Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 2 Jun 2018 15:04:27 +1000 Subject: [PATCH] packages: Remove find usage from brew --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" ;;