[F] Fix npm list count #240
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user