computer/scripts/install-homebrew.sh

39 lines
767 B
Bash
Raw Normal View History

2023-10-02 09:52:50 +00:00
#!/bin/bash
# Homebrew installation
# Check for Homebrew
if test ! $(which brew)
then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
2023-10-02 09:52:50 +00:00
brew update-reset
echo "Installing Homebrew packages..."
echo
cat Brewfile | xargs brew install
echo
echo "Finished installing Homebrew packages"
echo "Setting up zsh as default shell..."
echo
chsh -s /opt/homebrew/bin/zsh
echo
echo "Finished setting up zsh as default shell"
echo "Installing Homebrew casks..."
echo
2023-10-01 20:18:29 +00:00
brew tap caskroom/fonts
brew tap homebrew/cask-versions
cat Caskfile | xargs brew install --cask
echo
echo "Finished installing Homebrew casks"
# Set spaceduck theme for iTerm
open "../misc/spaceduck.itermcolors"
exit 0