mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-11-09 16:20:50 +00:00
packages: macOS support
This commit is contained in:
1 parent
0efdbb6e3b
commit
3c53c8c351
1 file changed
+9
@@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user