From 30c50dc7929e3f695a269b62e31453d3f860c2cc Mon Sep 17 00:00:00 2001 From: Racci Date: Mon, 5 Dec 2022 16:00:35 +1100 Subject: [PATCH 1/2] fix: cargo bin dir Use the environment variable to find the dir instead of the hard coded default --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 2117cfbd..a4645264 100755 --- a/neofetch +++ b/neofetch @@ -1911,7 +1911,7 @@ get_packages() { has flatpak && tot flatpak list has spm && tot spm list -i has puyo && dir ~/.puyo/installed - has cargo && dir ~/.cargo/bin/* + has cargo && dir ${CARGO_HOME}/bin/* # Snap hangs if the command is run without the daemon running. # Only run snap if the daemon is also running. From 1ac96804429fa91cec2d0d7b877dcdc36b3a5f59 Mon Sep 17 00:00:00 2001 From: Racci Date: Wed, 7 Dec 2022 13:40:41 +1100 Subject: [PATCH 2/2] fix: path ins't set by default Co-authored-by: Hykilpikonna --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index a4645264..ec9f36fa 100755 --- a/neofetch +++ b/neofetch @@ -1911,7 +1911,7 @@ get_packages() { has flatpak && tot flatpak list has spm && tot spm list -i has puyo && dir ~/.puyo/installed - has cargo && dir ${CARGO_HOME}/bin/* + has cargo && dir "${CARGO_HOME:-$HOME/.cargo}/bin/"* # Snap hangs if the command is run without the daemon running. # Only run snap if the daemon is also running.