mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Add function to install global rust packages
This commit is contained in:
@@ -6,3 +6,10 @@
|
|||||||
if [ -d "$HOME/.cargo/bin" ]; then
|
if [ -d "$HOME/.cargo/bin" ]; then
|
||||||
path_prepend "$HOME/.cargo/bin"
|
path_prepend "$HOME/.cargo/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
install_rust_global_packages() {
|
||||||
|
rustup component add rustfmt-preview
|
||||||
|
rustup component add rust-src
|
||||||
|
cargo +nightly install --force clippy
|
||||||
|
cargo install --force racer
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user