Skip to content

Instantly share code, notes, and snippets.

@ktrysmt
Last active September 5, 2022 04:21
Show Gist options
  • Save ktrysmt/9601264b37f8e46cad1e7075850478fb to your computer and use it in GitHub Desktop.
Save ktrysmt/9601264b37f8e46cad1e7075850478fb to your computer and use it in GitHub Desktop.
#!/bin/sh
curl https://sh.rustup.rs -sSf | sh -s -- -y
exec $SHELL -l
# for stable
rustup install stable
rustup default stable
rustup component add rust-analysis
rustup component add rust-src
# for nightly
rustup install nightly
rustup default nightly
rustup component add rust-analysis
rustup component add rust-src
# and add rust-analyzer
brew install rust-analyzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment