[F] Fix npm list count #240
This commit is contained in:
parent
b835eea039
commit
bd9c0b30cf
1 changed files with 2 additions and 1 deletions
3
neofetch
3
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.
|
||||
|
|
Loading…
Reference in a new issue