source cargo env only if exists

This commit is contained in:
Viktor Barzin 2026-01-24 00:26:54 +00:00
parent 893d5e96cf
commit ec8b89eee1

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"