From 3c53c8c351d1de743c3f69d30dd18d96fe1ac5cd Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 20:40:28 +0300 Subject: [PATCH] packages: macOS support --- pfetch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pfetch b/pfetch index b3cb1b0..9568d69 100755 --- a/pfetch +++ b/pfetch @@ -223,6 +223,15 @@ get_pkgs() { has brew && printf '%s\n' "$(brew --cellar)/"* has emerge && printf '%s\n' /var/db/pkg/*/*/ ;; + + Darwin*) + # Commands which print packages one per line. + has pkgin && pkgin list + has port && port installed + + # Directories containing packages. + has brew && printf '%s\n' /usr/local/Cellar/* + ;; esac | wc -l )