mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 08:41:39 +00:00
fix package count not including brew casks (#1777)
This commit is contained in:
4
neofetch
4
neofetch
@@ -1571,7 +1571,7 @@ get_packages() {
|
||||
# shellcheck disable=SC2086
|
||||
{
|
||||
shopt -s nullglob
|
||||
has brew && dir "$(brew --cellar)/*"
|
||||
has brew && dir "$(brew --cellar)/* $(brew --caskroom)/*"
|
||||
has emerge && dir "/var/db/pkg/*/*"
|
||||
has Compile && dir "/Programs/*/"
|
||||
has eopkg && dir "/var/lib/eopkg/package/*"
|
||||
@@ -1634,7 +1634,7 @@ get_packages() {
|
||||
|
||||
"Mac OS X"|"macOS"|MINIX)
|
||||
has port && pkgs_h=1 tot port installed && ((packages-=1))
|
||||
has brew && dir "$(brew --cellar)"/*
|
||||
has brew && dir "$(brew --cellar)/* $(brew --caskroom)/*"
|
||||
has pkgin && tot pkgin list
|
||||
has dpkg && tot dpkg-query -f '.\n' -W
|
||||
|
||||
|
Reference in New Issue
Block a user