[F] Fix npm list count #240

This commit is contained in:
Azalea 2024-04-02 20:56:31 -04:00
parent b835eea039
commit bd9c0b30cf

View file

@ -2069,7 +2069,8 @@ get_packages() {
# OS-independent package managers. # OS-independent package managers.
has pipx && tot pipx list --short has pipx && tot pipx list --short
has cargo && _cargopkgs="$(cargo install --list | grep -v '^ ')" && tot echo "$_cargopkgs" 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)" has am && pac "$(am -f --less)"
# OS-specific package managers. # OS-specific package managers.