git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bash/vars.bash9
1 files changed, 9 insertions, 0 deletions
diff --git a/.bash/vars.bash b/.bash/vars.bash
index 29a3dfd..0bdb5d5 100644
--- a/.bash/vars.bash
+++ b/.bash/vars.bash
@@ -94,6 +94,15 @@ if [ -x '/usr/bin/ruby' ]; then
fi
fi
+# ----- RUST ----- #
+# Include local crates' binary path:
+cargopath="${HOME}/.cargo/bin"
+if [ -d "$cargopath" ]; then
+ if ! printf '%b' "$PATH" | grep -P "(^|:)${cargopath}(:|$)" > /dev/null; then
+ PATH="${PATH}:$cargopath"
+ fi
+fi
+
# ----- MISC ----- #
# nopaste
export NOPASTE_SERVICES='pastebin nopaste'