mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-02 16:02:12 +01:00
pkgs: BSD support
This commit is contained in:
11
pfetch
11
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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user