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
394 B
Bash
Raw Normal View History

2021-11-14 22:05:14 +01:00
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