Skip to content

Instantly share code, notes, and snippets.

@AndrewWCarson
Created December 13, 2019 18:36
Show Gist options
  • Save AndrewWCarson/3d8e1765b480c7614d06d54408605a5a to your computer and use it in GitHub Desktop.
Save AndrewWCarson/3d8e1765b480c7614d06d54408605a5a to your computer and use it in GitHub Desktop.
Homebrew Self Service Install
#!/bin/bash
osascript << EOF
tell application "Terminal"
activate
set user to do shell script "stat -f%Su /dev/console"
do script "sudo -u " & user & ' /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' in window 2
tell application "System Events" to key code 36
end tell
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment