diff options
author | David Runge <dave@sleepmap.de> | 2023-05-26 13:31:36 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2023-05-26 13:31:36 +0200 |
commit | 962ed36e01c1ef0c15bf3a57a0903799f368cdd3 (patch) | |
tree | a24fb74cfbbacfee9cb8dead32526cb826960b11 | |
parent | 29557d41076a9bfd2372e7017c46cfb8a1a030e8 (diff) | |
download | dotfiles-962ed36e01c1ef0c15bf3a57a0903799f368cdd3.tar.gz dotfiles-962ed36e01c1ef0c15bf3a57a0903799f368cdd3.tar.bz2 dotfiles-962ed36e01c1ef0c15bf3a57a0903799f368cdd3.tar.xz dotfiles-962ed36e01c1ef0c15bf3a57a0903799f368cdd3.zip |
zsh: add support for adding rustup's stable toolchain bin to PATH
-rw-r--r-- | .config/zsh/includes/path.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
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}" |