From 914890b4b04c8a834b99f19eace08d22f011dafe Mon Sep 17 00:00:00 2001 From: OldWorldOrdr Date: Mon, 26 Jun 2023 14:41:20 -0400 Subject: [PATCH] fix cargo package count --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 9fa05b5e..a51efdce 100755 --- a/neofetch +++ b/neofetch @@ -2054,7 +2054,7 @@ get_packages() { has flatpak && tot flatpak list has spm && tot spm list -i has puyo && dir ~/.puyo/installed - has cargo && dir "${CARGO_HOME:-$HOME/.cargo}/bin/"* + has cargo && _cargopkgs="$(cargo install --list | grep -v '^ ')" && tot echo "$_cargopkgs" # Snap hangs if the command is run without the daemon running. # Only run snap if the daemon is also running.