diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2021-10-25 21:12:36 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2021-10-25 21:12:36 +0200 |
| commit | 91f262e4f106f6e633fba3dbf15684655dac1238 (patch) | |
| tree | f9354e8e12b3e26b55de50d3e84b11110ac8233b /.bashrc | |
| parent | b44fe4bc3ef1b0782f1eab47e2d67d16fed69c11 (diff) | |
| download | dotfiles-91f262e4f106f6e633fba3dbf15684655dac1238.tar.gz dotfiles-91f262e4f106f6e633fba3dbf15684655dac1238.zip | |
Add rust into my dev box
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -156,3 +156,11 @@ export XDG_CONFIG_HOME="$HOME/.config" # Add the binaries of Doom Emacs into my PATH. export PATH=$PATH:$HOME/.emacs.d/bin + +# If we have Rust's source code, export the special `RUST_SRC_PATH`, since this +# is useful for completion tools. +if command -v rustc &> /dev/null; then + if [ -d "$(rustc --print sysroot)/lib/rustlib/src/rust/library" ]; then + export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/library" + fi +fi |
