pkgs: BSD support
This commit is contained in:
parent
3c53c8c351
commit
1b5c44f4bf
11
pfetch
11
pfetch
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user