pkgs: BSD support

This commit is contained in:
Dylan Araps 2019-09-24 20:45:58 +03:00
parent 3c53c8c351
commit 1b5c44f4bf

11
pfetch
View File

@ -232,6 +232,17 @@ get_pkgs() {
# Directories containing packages. # Directories containing packages.
has brew && printf '%s\n' /usr/local/Cellar/* 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 esac | wc -l
) )