From 962ed36e01c1ef0c15bf3a57a0903799f368cdd3 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 26 May 2023 13:31:36 +0200 Subject: zsh: add support for adding rustup's stable toolchain bin to PATH --- .config/zsh/includes/path.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/zsh/includes/path.zsh b/.config/zsh/includes/path.zsh index 272feac..916a444 100644 --- a/.config/zsh/includes/path.zsh +++ b/.config/zsh/includes/path.zsh @@ -1,5 +1,9 @@ # cargo [ -d "${HOME}/.cargo/bin" ] && PATH="${HOME}/.cargo/bin:${PATH}" +# rustup +if command -v rustup > /dev/null; then + [[ -d "${HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin" ]] && PATH="${HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin:${PATH}" +fi # pyenv [ -d "${HOME}/.local/bin" ] && PATH="${HOME}/.local/bin:${PATH}" [ -d "${HOME}/.local/share/pyenv/shims" ] && PATH="${HOME}/.local/share/pyenv/shims:${PATH}" -- cgit v1.2.3-70-g09d2