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:
parent
2167583f5b
commit
6269f15b36
18
lib/tools.sh
Executable file
18
lib/tools.sh
Executable 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 -
|
||||||
4
setup.sh
4
setup.sh
@ -69,4 +69,8 @@ step "Set git author"
|
|||||||
step "Tweaking macOS config settings (takes a while)"
|
step "Tweaking macOS config settings (takes a while)"
|
||||||
"$MAC_SETUP_DIR/lib/macos.sh"
|
"$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} 🎉"
|
echo "${GREEN}✔ ${WHITE}${BOLD}Done!${NC} 🎉"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user