You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
368 B
11 lines
368 B
#!/bin/sh
|
|
|
|
if [ ! -d "${HOME}/.cargo" ]; then
|
|
# install rust
|
|
echo "installing rustup + rust stable";
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh;
|
|
chmod +x /tmp/rustup.sh && /tmp/rustup.sh -y --no-modify-path;
|
|
echo 'source $HOME/.cargo/env' > "${HOME}/.shell_extensions/rust.sh";
|
|
source ${HOME}/.cargo/env
|
|
rustup install stable;
|
|
fi |