zsh/env/50_rust.zsh

4 lines
171 B
Bash
Raw Normal View History

2020-02-13 13:21:42 +00:00
if which rustup &>/dev/null && [[ -n $(rustup show active-toolchain) ]]; then
export RUST_SRC_PATH=$(rustup run stable rustc --print sysroot)/lib/rustlib/src/rust/src
fi