Last Updated: February 26, 2016
·
574
· dcondrey

Install Command-Line Tools

Automate installation of command-line tools in your dotfiles using Applescript.

(
xcode-select --install;
sleep 1;
osascript -e \
    'tell application "System Events" \\
        tell process "Install Command Line Developer Tools" \\
            keystroke return \\
            click button "Agree" of window "License Agreement"'
)

Gist