zsh: only try to add cargo path if exists

This commit is contained in:
Guilherme Rugai Freire 2024-05-28 11:23:41 -03:00
parent 28697d312c
commit ac83d1547f
No known key found for this signature in database
GPG Key ID: AC1D9B6E48E16AC1

View File

@ -8,7 +8,7 @@ export ZSH="$HOME/.local/share/ohmyzsh"
source $ZSH/oh-my-zsh.sh
# Load cargo env
if [ -d "$CARGO_HOME" ]; then
if [ -d "$CARGO_HOME/env" ]; then
. "$CARGO_HOME/env"
fi