Skip to content

Instantly share code, notes, and snippets.

@binarytemple
Created September 7, 2020 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binarytemple/6fb9b2283ef5a473dc01c8ef74e94078 to your computer and use it in GitHub Desktop.
Save binarytemple/6fb9b2283ef5a473dc01c8ef74e94078 to your computer and use it in GitHub Desktop.
#!/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