Check whether ~/.cargo/env exists before sourcing
This commit is contained in:
parent
76255c6092
commit
6ca16a234f
1 changed files with 4 additions and 1 deletions
5
.zshenv
5
.zshenv
|
@ -85,4 +85,7 @@ alias valgrind='valgrind --track-origins=yes --leak-check=full'
|
|||
#
|
||||
# Cargo env
|
||||
#
|
||||
. "$HOME/.cargo/env"
|
||||
# if `$HOME/.cargo/env` exists, source it
|
||||
if [ -f "$HOME/.cargo/env" ] ; then
|
||||
. "$HOME/.cargo/env"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue