diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-24 20:40:28 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-24 20:40:28 +0300 |
| commit | 3c53c8c351d1de743c3f69d30dd18d96fe1ac5cd (patch) | |
| tree | 785a0275a4f6ad0c75df1a16b986743b1bc793d0 | |
| parent | 0efdbb6e3b5110c4ff74befd14620786df5797d9 (diff) | |
| download | pfetch-3c53c8c351d1de743c3f69d30dd18d96fe1ac5cd.tar.gz | |
packages: macOS support
| -rwxr-xr-x | pfetch | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 ) |
