packages: macOS support

This commit is contained in:
Dylan Araps 2019-09-24 20:40:28 +03:00
parent 0efdbb6e3b
commit 3c53c8c351

9
pfetch
View File

@ -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
)