Ver código fonte

[PR] dylanaraps/neofetch#1876 from DessertEagle - packages: Add pm and cargo package managers

Upstream PR: https://github.com/dylanaraps/neofetch/pull/1876
Thanks to @DessertEagle

Co-authored-by: DessertEagle <89012347+DessertEagle@users.noreply.github.com>
Azalea (on HyDEV-Daisy) 2 anos atrás
pai
commit
562fdc34e2
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      neofetch

+ 2 - 0
neofetch

@@ -1695,6 +1695,7 @@ get_packages() {
             has pisi       && tot pisi li
             has pacstall   && tot pacstall -L
             has bulge      && tot bulge list
+            has pm         && tot pm list packages
 
             # Using the dnf package cache is much faster than rpm.
             if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
@@ -1768,6 +1769,7 @@ get_packages() {
             has flatpak && tot flatpak list
             has spm     && tot spm list -i
             has puyo    && dir ~/.puyo/installed
+            has cargo   && dir ~/.cargo/bin/*
 
             # Snap hangs if the command is run without the daemon running.
             # Only run snap if the daemon is also running.