-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathasdf.sh
32 lines (23 loc) · 855 Bytes
/
asdf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
#set -eu pipefail
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
# asdf installation
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.0
# asdf setup
echo '. ~/.asdf/asdf.sh' >> ~/.bashrc
echo '. ~/.asdf/completions/asdf.bash' >> ~/.bashrc
# shellcheck disable=SC1091
bash -c '. ~/.bashrc'
. ~/.asdf/asdf.sh
. ~/.asdf/completions/asdf.bash
# nodejs/ruby prerequisites & setup
#asdf plugin-add ruby
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
# import the nodejs release team's pgp keys to main keyring
#bash -c '${ASDF_DATA_DIR:=$HOME/.asdf}/plugins/nodejs/bin/import-release-team-keyring'
# install ruby & nodejs via asdf
asdf install
# install linters from asdf managed binaries
npm install -g --unsafe-perm markdownlint-cli
npm install --save-dev --save-exact prettier
#gem install rufo