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

13 lines
413 B
Bash
Raw Normal View History

2021-11-14 22:15:12 +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
2021-11-14 22:20:42 +01:00
curl https://sh.rustup.rs -sSf | ( sh -s -- -y; source $HOME/.cargo/env )
2021-11-14 22:05:14 +01:00
# 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
2021-11-14 22:11:27 +01:00
2021-11-14 22:05:14 +01:00
# Adding dev tools
rustup component add rust-analysis
2021-11-14 22:10:48 +01:00
rustup component add rls