Add function to install global rust packages

This commit is contained in:
2018-05-20 11:10:21 +01:00
parent d0a63b795f
commit e5f8c78518

View File

@@ -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
}