From 1dab0d9e770466c64b6a822d30307848b710c40c Mon Sep 17 00:00:00 2001 From: Super User Date: Mon, 23 Mar 2026 19:16:09 +0800 Subject: embed keys, make scripts idempotent --- core/packages/install_rust.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/packages') diff --git a/core/packages/install_rust.sh b/core/packages/install_rust.sh index 921a533..a0b0728 100755 --- a/core/packages/install_rust.sh +++ b/core/packages/install_rust.sh @@ -2,6 +2,6 @@ # Install Rust and Cargo tools curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y -echo '[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"' >> ~/.bashrc +grep -q 'cargo/env' ~/.bashrc || echo '[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"' >> ~/.bashrc source "$HOME/.cargo/env" cargo install cargo-clone-crate cargo-edit cargo-info evcxr_jupyter bacon du-dust ripgrep bandwhich -- cgit