Skip to content

Instantly share code, notes, and snippets.

@gregjotau
Last active March 9, 2023 13:39
Show Gist options
  • Save gregjotau/3a2746f97e554e4eeb3062c9fb75c869 to your computer and use it in GitHub Desktop.
Save gregjotau/3a2746f97e554e4eeb3062c9fb75c869 to your computer and use it in GitHub Desktop.
bootstrap a mac
#!/usr/bin/env bash
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Oh-my-zsh - zsh default shell on mac
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
source ~/.zshrc
# GUI programs, --cask / cask commands are no longer needed
PACKAGES=(
ffmpeg
git
imagemagick
npm
youtube-dl
openssl
ansible
azure-cli
docker-compose
google-chrome
docker
jetbrains-toolbox
slack
spotify
imageoptim
obs
postman
whatsapp
)
echo "Installing packages..."
brew install ${PACKAGES[@]}
# Dock
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
# Safari
defaults write com.apple.Safari IncludeDevelopMenu -bool true
echo "Bootstrapping complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment