Make rust use XDG directories

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2019-02-12 22:32:00 +01:00
parent 606ca1e914
commit e2594c49f6
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
2 changed files with 15 additions and 3 deletions

View file

@ -26,8 +26,18 @@ NPM_PACKAGES=(
"npm-check-updates"
)
RUST_COMPONENTS=(
"rls-preview"
"rustfmt-preview"
)
#######################################
# Main code
#######################################
print_header "Installing global npm packages"
npm i -g "${NPM_PACKAGES[@]}"
npm i -g "${NPM_PACKAGES[@]}"
print_header "Install Rust toolchain and components"
rustup toolchain install beta
rustup default beta
rustup component add "${RUST_COMPONENTS[@]}"