summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-05-14 17:26:22 +0300
committerLars Wirzenius <liw@liw.fi>2022-05-14 17:26:22 +0300
commit3a42c822e1e1ca066ddaca88a1aa85adbe32940a (patch)
tree981016f558f00ca2d04e47e9d760da9c288e2858
parent7c58fa19e316a60b5cd9d5b5b7dc1e1551d2aae7 (diff)
downloadliw-dot-files-3a42c822e1e1ca066ddaca88a1aa85adbe32940a.tar.gz
bashrc: conditional source of cargo env
Sponsored-by: author
-rw-r--r--bashrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index fdede7d..c097802 100644
--- a/bashrc
+++ b/bashrc
@@ -193,4 +193,8 @@ fi
if command -v starship > /dev/null; then
eval "$(starship init bash)"
fi
-. "$HOME/.cargo/env"
+
+if [ -e "$HOME/.cargo/env" ]
+then
+ . "$HOME/.cargo/env"
+fi