1
0
mirror of https://github.com/danbee/mac-setup synced 2025-03-04 08:39:10 +00:00

Install language tools with asdf

This commit is contained in:
Daniel Barber 2019-04-18 15:36:35 -04:00
parent 2167583f5b
commit 6269f15b36
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 22 additions and 0 deletions

18
lib/tools.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"
cd "$HOME"
for tool in `awk -F " " '{print $1}' .tool-versions`; do
asdf plugin-add "$tool"
if [ "$tool" == "nodejs" ]; then
bash "$HOME/.asdf/plugins/nodejs/bin/import-release-team-keyring"
fi
done
asdf install
cd -

View File

@ -69,4 +69,8 @@ step "Set git author"
step "Tweaking macOS config settings (takes a while)"
"$MAC_SETUP_DIR/lib/macos.sh"
# Install language tools
step "Installing language tools"
"$MAC_SETUP_DIR/lib/tools.sh"
echo "${GREEN}${WHITE}${BOLD}Done!${NC} 🎉"