From 5b28f031b5707dd6d3d584eed39e7520d1bd9e05 Mon Sep 17 00:00:00 2001 From: nex Date: Sun, 16 Jun 2024 13:23:28 +0100 Subject: [PATCH] Dynamically load cargo --- .bash_profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index f015706..b1e6a14 100644 --- a/.bash_profile +++ b/.bash_profile @@ -6,4 +6,6 @@ if [ -f ~/.bashrc ]; then fi # User specific environment and startup programs -. "$HOME/.cargo/env" +if [ -f $HOME/.cargo/env ]; then + . "$HOME/.cargo/env" +fi