packages: macOS support
This commit is contained in:
parent
0efdbb6e3b
commit
3c53c8c351
9
pfetch
9
pfetch
|
@ -223,6 +223,15 @@ get_pkgs() {
|
||||||
has brew && printf '%s\n' "$(brew --cellar)/"*
|
has brew && printf '%s\n' "$(brew --cellar)/"*
|
||||||
has emerge && printf '%s\n' /var/db/pkg/*/*/
|
has emerge && printf '%s\n' /var/db/pkg/*/*/
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Darwin*)
|
||||||
|
# Commands which print packages one per line.
|
||||||
|
has pkgin && pkgin list
|
||||||
|
has port && port installed
|
||||||
|
|
||||||
|
# Directories containing packages.
|
||||||
|
has brew && printf '%s\n' /usr/local/Cellar/*
|
||||||
|
;;
|
||||||
esac | wc -l
|
esac | wc -l
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user