From 1b5c44f4bfe86c5fa0dc00f60bb829f76070bd7d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 20:45:58 +0300 Subject: [PATCH] pkgs: BSD support --- pfetch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pfetch b/pfetch index 9568d69..57e1834 100755 --- a/pfetch +++ b/pfetch @@ -232,6 +232,17 @@ get_pkgs() { # Directories containing packages. has brew && printf '%s\n' /usr/local/Cellar/* ;; + + FreeBSD*|Dragonfly*) + # Commands which print packages one per line. + has pkg && pkg info + ;; + + BSD*) + # Commands which print packages one per line. + has pkginfo && pkginfo -i + has pkg && pkg list + ;; esac | wc -l )