bashrc: Check if cargo env files exists before sourcing it
This commit is contained in:
parent
ef53ad4e37
commit
e8f8745068
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,10 @@ if test -d "$FNM_PATH" ; then
|
|||
eval "$(fnm env --use-on-cd)"
|
||||
fi
|
||||
|
||||
. "$HOME/.cargo/env"
|
||||
CARGO_ENV_PATH="$HOME/.cargo/env"
|
||||
if [ -f "$CARGO_ENV_PATH" ]; then
|
||||
. "$CARGO_ENV_PATH"
|
||||
fi
|
||||
|
||||
if command -v starship > /dev/null; then
|
||||
eval "$(starship init bash)"
|
||||
|
|
Loading…
Reference in a new issue