neofetch: support MacPorts on Linux & BSD

This commit is contained in:
Sergey Fedorov 2024-08-28 18:35:38 +08:00
parent 95a6cc7f4b
commit d309f2d8a8

View file

@ -2153,6 +2153,7 @@ get_packages() {
has squirrel && tot ls /var/packages has squirrel && tot ls /var/packages
has anise && tot anise s --installed has anise && tot anise s --installed
has am && pac "$(am -f --less)" has am && pac "$(am -f --less)"
has port && pkgs_h=1 tot port installed && ((packages-=1))
# Using the dnf package cache is much faster than rpm. # Using the dnf package cache is much faster than rpm.
if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then