From 683164bff0d873d47f32aad626dc77616671afb0 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 10 Feb 2020 08:32:43 +0100 Subject: [PATCH] Installs racer, cargo-update and set +nightly --- tforgione.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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() {