瀏覽代碼

[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 年之前
父節點
當前提交
562fdc34e2
共有 1 個文件被更改,包括 2 次插入0 次删除
  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.