Files
dotfiles/.config/yadm/bootstrap.d/01-homebrew.sh
2022-09-29 19:10:16 +08:00

14 lines
311 B
Bash
Executable File

# 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