diff --git a/.bashrc b/.bashrc index d271e27..fbd549d 100644 --- a/.bashrc +++ b/.bashrc @@ -317,4 +317,8 @@ if [ -z "$TMUX" ] && command -v tmux &> /dev/null && [ -n "$SSH_TTY" ] && [ -z " tmux attach-session -t $USER || tmux new-session -s $USER exit fi -. "$HOME/.cargo/env" + +if [ -f "$HOME/.cargo/env" ] + then + . "$HOME/.cargo/env" +fi