add install_brew.sh

This commit is contained in:
Georgi Gardev
2024-03-04 23:50:08 +02:00
parent d0d8162af6
commit 7a355e626d
2 changed files with 17 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# Check for Homebrew and install if missing
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.bash_profile.local
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
brew update
brew tap homebrew/bundle
brew bundle --file ./macos/Brewfile