aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.environment.d/00-languages10
1 files changed, 9 insertions, 1 deletions
diff --git a/.environment.d/00-languages b/.environment.d/00-languages
index d341671..fe0fba7 100644
--- a/.environment.d/00-languages
+++ b/.environment.d/00-languages
@@ -1 +1,9 @@
-PATH="$GOPATH/bin:$PATH"
+if [ -d "$GOPATH/bin" ]; then
+ PATH="$GOPATH/bin:$PATH"
+fi
+
+if [ -d "$HOME/.cargo/bin" ]; then
+ PATH="$HOME/.cargo/bin:$PATH"
+fi
+
+RUST_SRC_PATH="$HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/"
nihil fit ex nihilo