diff --git a/dot_profile.tmpl b/dot_profile.tmpl index 5f46e225..ca6106a3 100644 --- a/dot_profile.tmpl +++ b/dot_profile.tmpl @@ -16,8 +16,10 @@ if [ -n "$BASH_VERSION" ]; then fi fi -if [ -d "$HOME/.cargo" ]; then -. "$HOME/.cargo/env" +if [ -f "$HOME/.cargo/env" ]; then + . "$HOME/.cargo/env" +elif [-d "$HOME/.cargo/bin" ]; then + PATH="$HOME/.cargo/bin:$PATH" fi # set PATH so it includes user's private bin if it exists