Skip to content

Commit

Permalink
[F] Fix npm list count hykilpikonna#240
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Apr 3, 2024
1 parent b835eea commit bd9c0b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bd9c0b3

Please sign in to comment.