bootstrap: homebrew: Initial commit
This commit is contained in:
13
.config/yadm/bootstrap.d/homebrew.sh
Executable file
13
.config/yadm/bootstrap.d/homebrew.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user