aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 20:40:28 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 20:40:28 +0300
commit3c53c8c351d1de743c3f69d30dd18d96fe1ac5cd (patch)
tree785a0275a4f6ad0c75df1a16b986743b1bc793d0
parent0efdbb6e3b5110c4ff74befd14620786df5797d9 (diff)
downloadpfetch-3c53c8c351d1de743c3f69d30dd18d96fe1ac5cd.tar.gz
packages: macOS support
-rwxr-xr-xpfetch9
1 files changed, 9 insertions, 0 deletions
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
)