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

12 lines
406 B
Bash
Raw Normal View History

2021-11-14 22:07:00 +01:00
which curl &> /dev/null || { sudo apt update; sudo apt install curl -y } # Install curl if not already installed
2021-11-14 22:05:14 +01:00
# 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
2021-11-14 22:10:02 +01:00
fish -c 'set -Up fish_user_paths ~/.cargo/bin'
2021-11-14 22:05:14 +01:00
fi
# Adding dev tools
rustup component add rust-analysis
2021-11-14 22:10:48 +01:00
rustup component add rls