Created
September 7, 2020 22:00
-
-
Save binarytemple/6fb9b2283ef5a473dc01c8ef74e94078 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
brew install asdf | |
ASDF_CONF=$( | |
cat <<EOF | |
export ASDF_DIR="$(brew --prefix asdf)" | |
. ${ASDF_DIR}/asdf.sh | |
export PATH=$PATH:~/.asdf/shims/ | |
EOF | |
) | |
case $0 in | |
bash) | |
echo $ASDF_CONF >> ~/.bashrc | |
;; | |
-zsh) | |
echo $ASDF_CONF >> ~/.zshrc | |
;; | |
zsh) | |
echo $ASDF_CONF >> ~/.zshrc | |
;; | |
esac | |
eval $ASDF_CONF | |
brew install openssl | |
SSLPATH=$(brew --prefix openssl) | |
KERL_ADD="export KERL_CONFIGURE_OPTIONS=--with-ssl=${SSLPATH}" | |
case $0 in | |
bash) | |
echo $KERL_ADD >> ~/.bashrc | |
;; | |
-zsh) | |
echo $KERL_ADD >> ~/.zshrc | |
;; | |
zsh) | |
echo $KERL_ADD >> ~/.zshrc | |
;; | |
esac | |
asdf plugin-add erlang | |
asdf plugin-add elixir | |
asdf install erlang 23.0.3 | |
asdf install elixir 1.10.4-otp-23 | |
asdf global erlang 23.0.3 | |
asdf global elixir 1.10.4-otp-23 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment