From e5ec85048b23e835876e549112f6a21ad4b80589 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 27 May 2024 14:24:53 -0500 Subject: [PATCH] fix(zsh): check before sourcing CARGO_HOME/env --- users/price/dots/.config/zsh/config/profile/profile/env.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users/price/dots/.config/zsh/config/profile/profile/env.zsh b/users/price/dots/.config/zsh/config/profile/profile/env.zsh index 35dab406..db160adb 100644 --- a/users/price/dots/.config/zsh/config/profile/profile/env.zsh +++ b/users/price/dots/.config/zsh/config/profile/profile/env.zsh @@ -130,7 +130,9 @@ fi ### Rust ### export CARGO_HOME="${HOME}/.cargo" -source "${CARGO_HOME}/env" +if [[ -r "${CARGO_HOME}/env" ]]; then + source "${CARGO_HOME}/env" +fi export RUSTUP_HOME="${HOME}/.rustup" export PATH="${PATH}:${CARGO_HOME}/bin"