From 0ff2502f48e24b67847d7a730b155fafcdd53f91 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Mon, 21 Dec 2020 10:17:55 -0800 Subject: rust envs --- .environment.d/00-languages | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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/" -- cgit v1.2.3