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
This commit is contained in:
Fritz Geib 2021-06-11 00:53:33 -04:00 committed by GitHub
parent 22b97f99c3
commit 87753c5057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1522,7 +1522,7 @@ get_packages() {
has kiss && tot kiss l has kiss && tot kiss l
has cpt-list && tot cpt-list has cpt-list && tot cpt-list
has pacman-key && tot pacman -Qq --color never 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 rpm && tot rpm -qa
has xbps-query && tot xbps-query -l has xbps-query && tot xbps-query -l
has apk && tot apk info has apk && tot apk info
@ -1610,7 +1610,7 @@ get_packages() {
"Mac OS X"|"macOS"|MINIX) "Mac OS X"|"macOS"|MINIX)
has port && pkgs_h=1 tot port installed && ((packages-=1)) 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 pkgin && tot pkgin list
has nix-store && { has nix-store && {