diff --git a/tforgione.sh b/tforgione.sh index f168c9e..34558ff 100755 --- a/tforgione.sh +++ b/tforgione.sh @@ -340,6 +340,22 @@ configure_rust() { fi 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() {