neofetch: support MacPorts on Linux & BSD
This commit is contained in:
parent
95a6cc7f4b
commit
d309f2d8a8
1 changed files with 1 additions and 0 deletions
1
neofetch
1
neofetch
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue