summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-03-26 12:46:06 +0100
committerTobias Klauser <tklauser@distanz.ch>2021-03-26 12:46:06 +0100
commit9fa1100c70567238a67da3acfbbb6d218305d0b2 (patch)
tree04cf35019bd7df3f01e2a9beac38de54b1c03fc4
parent71b720d1f604745c72f05a28e3f30a708211cd30 (diff)
.bashrc: source cargo env if present
-rw-r--r--.bashrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index f9fc24b..a59baa5 100644
--- a/.bashrc
+++ b/.bashrc
@@ -105,3 +105,8 @@ export PATH=$HOME/bin:$PATH
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
+
+CARGO_ENV="$HOME/.cargo/env"
+if [ -f $CARGO_ENV ]; then
+ . $CARGO_ENV
+fi