source cargo env only if exists

This commit is contained in:
Viktor Barzin 2026-01-24 00:26:54 +00:00
parent 93e2d072e0
commit 986ba5a7dc

View file

@ -10,4 +10,4 @@ export EDITOR='vim'
# export LC_ALL=en_US.UTF-8
# Cargo/Rust
. "$HOME/.cargo/env"
[[ -f "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"