import { log } from "../log.js"; import { commandExists, runPassthrough } from "../util.js"; export function installHomebrew(): void { if (commandExists("brew")) { log("Homebrew already installed."); return; } log("Installing Homebrew..."); runPassthrough( '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"', ); runPassthrough('eval "$(/opt/homebrew/bin/brew shellenv)"'); }