Script for easily configuring, using, switching and comparing local offline coding models
at main 15 lines 448 B view raw
1import { log } from "../log.js"; 2import { commandExists, runPassthrough } from "../util.js"; 3 4export function installHomebrew(): void { 5 if (commandExists("brew")) { 6 log("Homebrew already installed."); 7 return; 8 } 9 10 log("Installing Homebrew..."); 11 runPassthrough( 12 '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"', 13 ); 14 runPassthrough('eval "$(/opt/homebrew/bin/brew shellenv)"'); 15}