diff --git a/.config/yadm/bootstrap.d/homebrew.sh b/.config/yadm/bootstrap.d/homebrew.sh new file mode 100755 index 0000000..fa6cb2b --- /dev/null +++ b/.config/yadm/bootstrap.d/homebrew.sh @@ -0,0 +1,13 @@ +# macOS ONLY + +source $HOME/.zshenv + +if [[ "$OSNAME" == "macOS" ]]; then + # macOS + if ! command -v brew &> /dev/null; then + echo 'Installing Homebrew' + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + fi + + echo 'Homebrew is installed' +fi