This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/installRust.sh
2021-11-14 22:07:00 +01:00

11 lines
396 B
Bash

which curl &> /dev/null || { sudo apt update; sudo apt install curl -y } # Install curl if not already installed
# Install rust
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
# If fish is used, adding cargo to path
if [ -x $HOME/.config/fish ] ; then
set -Up fish_user_paths ~/.cargo/bin
fi
# Adding dev tools
rustup component add rust-analysis
rustup component add rls