aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2020-12-21 10:17:55 -0800
committerRaul Benencia <rul@kalgan.cc>2020-12-21 10:20:36 -0800
commit0ff2502f48e24b67847d7a730b155fafcdd53f91 (patch)
tree8a4feea38b76db95b1f338d38978768fba38ee74
parent3614e85aa5e88604d805fe55dacc74f156c57e07 (diff)
rust envs
-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