Skip to content

Instantly share code, notes, and snippets.

@matteocrippa
Last active February 26, 2024 12:08
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save matteocrippa/8c3a1f9f87aa14cadb64ce0c7d58cc5f to your computer and use it in GitHub Desktop.
Save matteocrippa/8c3a1f9f87aa14cadb64ce0c7d58cc5f to your computer and use it in GitHub Desktop.
A script to automate the setup of a development oriented Macbook machine
#!/usr/bin/env bash
# Brew
echo "Installing 🍺 Brew!"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "eval $(/opt/homebrew/bin/brew shellenv)" >> .zshrc
# Tap
brew tap homebrew/bundle
brew tap homebrew/core
brew tap homebrew/cask-fonts
brew tap leoafarias/fvm
# Update
brew update
brew upgrade
# Install brews
brew install coreutils
brew install git
brew install tig
brew install diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
brew install nvm
brew install wget
brew install curl
brew install swiftlint
brew install htop
brew install bat
brew install exa
brew install dust
brew install fvm
# Heroku
brew install heroku/brew/heroku
heroku update
# Fonts
brew install --cask font-fira-code
echo "font_family FiraCode Nerd Font" >> ~/.config/kitty/kitty.conf
# Zsh
echo "ZSH"
brew install zsh
brew install zsh-autosuggestions
brew install spaceship
echo "source /opt/homebrew/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh" >> ~/.zshrc
echo "source $(brew --prefix)/opt/spaceship/spaceship.zsh" >> ~/.zshrc
# List of apps
brew install --cask keepingyouawake
brew install --cask charles
brew install --cask cyberduck
brew install --cask cleanmymac
brew install --cask clipy
brew install --cask utm
brew install --cask grammarly
brew install --cask stats
brew install --cask kitty
brew install --cask slack
brew install --cask zoom
brew install --cask the-unarchiver
brew install --cask visual-studio-code
brew install --cask google-backup-and-sync
brew install --cask rectangle
brew install --cask suspicious-package
brew install --cask sourcetree
brew install --cask dozer
brew install --cask homebrew/cask-versions/android-studio-preview-beta
brew install --cask little-snitch
brew install --cask sf-symbols
brew install --cask rapidapi
brew install --cask google-drive
brew install --cask chrome-remote-desktop-host
brew install --cask syncthing
# Install mas
brew install mas
# Cleanup
brew cleanup -s
# Remove not needed apps
sudo mas uninstall 408981434 # workaround to access to sudo
sudo mas uninstall 408981434 # iMovie
sudo mas uninstall 682658836 # GarageBand
# Download AppStore apps
mas install 497799835
mas install 407963104
mas install 824171161
mas install 1599313358
mas install 1481853033
mas install 640199958
# Xcode command tools
xcode-select --install
# Force disable .DS_Store
git config --global core.excludesfile ~/.gitignore
echo .DS_Store >> ~/.gitignore
# Disable brew analytics
brew analytics off
# Turn on Firewall
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
# Install Rosetta for M1
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment