aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
)