-
Notifications
You must be signed in to change notification settings - Fork 0
/
asdf.sh
executable file
·29 lines (21 loc) · 943 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
#!/bin/bash
sudo apt install -y automake autoconf libreadline-dev libncurses-dev libssl-dev libyaml-dev libxslt-dev libffi-dev libtool unixodbc-dev unzip
rm -rf ~/.asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
echo >> ~/.bashrc
echo '## asdf' >> ~/.bashrc
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc
. $HOME/.asdf/asdf.sh
asdf plugin-add go https://github.com/kennyp/asdf-golang
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
# Setup Node.js
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
# Setup GOPATH
echo >> ~/.bashrc
echo '## Go' >> ~/.bashrc
echo 'export GOPATH="$HOME/work/go"' >> ~/.bashrc
echo 'export PATH="$GOPATH/bin:$PATH"' >> ~/.bashrc