diff --git a/neofetch b/neofetch index fc211734..10e9ad70 100755 --- a/neofetch +++ b/neofetch @@ -2069,7 +2069,8 @@ get_packages() { # OS-independent package managers. has pipx && tot pipx list --short has cargo && _cargopkgs="$(cargo install --list | grep -v '^ ')" && tot echo "$_cargopkgs" - has npm && pkgs_h=1 tot npm list -g --depth=0 + npm-list() { npm list -g --depth=0 | grep -v -E '.*(\(none\)|npm@).*'; } + has npm && pkgs_h=1 tot npm-list has am && pac "$(am -f --less)" # OS-specific package managers.