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 )