# Sourced by the Rust scripts (never executed): puts the user-level rustup toolchain on # PATH when the calling shell did not. Non-interactive shells skip ~/.bashrc, so editor # tasks, git hooks and agent shells start without ~/.cargo/bin. rustup then selects the # channel pinned by rust-toolchain.toml. Nothing here installs anything. cargo_bin="${CARGO_HOME:-$HOME/.cargo}/bin" if ! command -v cargo >/dev/null 2>&1 && [ -x "$cargo_bin/cargo" ]; then PATH="$cargo_bin:$PATH" export PATH fi unset cargo_bin