Check whether ~/.cargo/env exists before sourcing

This commit is contained in:
finga 2025-01-26 15:28:51 +01:00
parent 76255c6092
commit 6ca16a234f

View file

@ -85,4 +85,7 @@ alias valgrind='valgrind --track-origins=yes --leak-check=full'
#
# Cargo env
#
# if `$HOME/.cargo/env` exists, source it
if [ -f "$HOME/.cargo/env" ] ; then
. "$HOME/.cargo/env"
fi