Refactor various install_*_global_packages functions

This commit is contained in:
2019-12-27 22:37:03 +00:00
parent e7ef71b49a
commit 1aefb225bc
3 changed files with 48 additions and 39 deletions

View File

@@ -11,26 +11,29 @@ alias cof="coffee"
alias tl="tldr"
install_node_global_packages () {
npm install -g \
appcenter-cli \
eslint \
eslint-config-prettier \
eslint-plugin-prettier \
eslint_d \
htmllint-cli \
httpsnippet \
javascript-typescript-langserver \
js-beautify \
jsonlint \
localtunnel \
markdown-it \
prettier \
stylelint \
tslint \
typescript \
typescript-formatter \
uuid-cli \
vscode-css-languageserver-bin
local packages=(
appcenter-cli
eslint
eslint-config-prettier
eslint-plugin-prettier
eslint_d
htmllint-cli
httpsnippet
javascript-typescript-langserver
js-beautify
jsonlint
localtunnel
markdown-it
prettier
stylelint
tslint
typescript
typescript-formatter
uuid-cli
vscode-css-languageserver-bin
)
npm install -g "${packages[@]}"
}
# Load nvm if it's available

View File

@@ -3,20 +3,23 @@
#
install_ruby_global_packages () {
gem install --no-document \
brakeman \
'bundler:~> 1.0' \
'bundler:~> 2.0' \
bundler-audit \
foreman \
lunchy \
method_source \
pry-doc \
rbenv-rehash \
reek \
rubocop \
seeing_is_believing \
solargraph
local packages=(
'bundler:~> 1.0'
'bundler:~> 2.0'
brakeman
bundler-audit
foreman
lunchy
method_source
pry-doc
rbenv-rehash
reek
rubocop
seeing_is_believing
solargraph
)
gem install --no-document "${packages[@]}"
}
# Aliases

View File

@@ -8,9 +8,12 @@ if [ -d "$HOME/.cargo/bin" ]; then
fi
install_rust_global_packages() {
rustup component add \
rls \
rust-analysis \
rust-src \
rustfmt \
local packages=(
rls
rust-analysis
rust-src
rustfmt
)
rustup component add "${packages[@]}"
}