diff options
author | Raul Benencia <rul@kalgan.cc> | 2020-12-21 10:17:55 -0800 |
---|---|---|
committer | Raul Benencia <rul@kalgan.cc> | 2020-12-21 10:20:36 -0800 |
commit | 0ff2502f48e24b67847d7a730b155fafcdd53f91 (patch) | |
tree | 8a4feea38b76db95b1f338d38978768fba38ee74 /.environment.d/00-languages | |
parent | 3614e85aa5e88604d805fe55dacc74f156c57e07 (diff) |
rust envs
Diffstat (limited to '.environment.d/00-languages')
-rw-r--r-- | .environment.d/00-languages | 10 |
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/" |