From e5f8c78518cd33cbe78185a1e9863b65cfc87d84 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 20 May 2018 11:10:21 +0100 Subject: [PATCH] Add function to install global rust packages --- shell/rust.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell/rust.sh b/shell/rust.sh index 99d56ac..25b4afe 100644 --- a/shell/rust.sh +++ b/shell/rust.sh @@ -6,3 +6,10 @@ if [ -d "$HOME/.cargo/bin" ]; then path_prepend "$HOME/.cargo/bin" fi + +install_rust_global_packages() { + rustup component add rustfmt-preview + rustup component add rust-src + cargo +nightly install --force clippy + cargo install --force racer +}