Installs racer, cargo-update and set +nightly
This commit is contained in:
parent
3b21af203a
commit
683164bff0
16
tforgione.sh
16
tforgione.sh
|
@ -340,6 +340,22 @@ configure_rust() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y
|
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y
|
||||||
|
|
||||||
|
cargo_update_installed=1
|
||||||
|
yes_no_ask "do you wish to install cargo-update? it allows to update package automatically"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
cargo_update_installed=0
|
||||||
|
cargo install cargo-update
|
||||||
|
fi
|
||||||
|
|
||||||
|
yes_no_ask "do you wish to install racer? it enabled rust completion from vim"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
rustup toolchain add nightly
|
||||||
|
cargo +nightly install racer
|
||||||
|
if [ $cargo_update_installed -eq 0 ]; then
|
||||||
|
cargo install-update-config -t nightly racer
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
|
Loading…
Reference in New Issue