From 3a42c822e1e1ca066ddaca88a1aa85adbe32940a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 14 May 2022 17:26:22 +0300 Subject: bashrc: conditional source of cargo env Sponsored-by: author --- bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index fdede7d..c097802 100644 --- a/bashrc +++ b/bashrc @@ -193,4 +193,8 @@ fi if command -v starship > /dev/null; then eval "$(starship init bash)" fi -. "$HOME/.cargo/env" + +if [ -e "$HOME/.cargo/env" ] +then + . "$HOME/.cargo/env" +fi -- cgit v1.2.1