pkgs: BSD support
This commit is contained in:
parent
3c53c8c351
commit
1b5c44f4bf
1 changed files with 11 additions and 0 deletions
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
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue