Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A script to automate the setup of a development oriented Macbook machine
#!/usr/bin/env bash
# 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
# 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 node
brew install yarn
brew install nvm
brew install wget
brew install curl
brew install cocoapods
brew install swiftlint
brew install mackup
brew install macos-trash
brew install neofetch
brew install htop
brew install bat
brew install exa
brew install dust
# Fonts
brew cask install font-meslo-for-powerline
# Zsh
brew install zsh zsh-completions
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
brew install zsh-autosuggestions
echo "source $(brew --prefix)/opt/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
brew install romkatv/powerlevel10k/powerlevel10k
echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >> ~/.zshrc
p10k configure
source ~/.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 firefox
brew install --cask utm
brew install --cask grammarly
brew install --cask stats
brew install --cask kitty
brew install --cask knuff
brew install --cask postman
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 kitematic
brew install --cask suspicious-package
brew install --cask keepassxc
brew install --cask sourcetree
brew install --cask itsycal
brew install --cask dozer
brew install --cask homebrew/cask-versions/android-studio-preview-beta
brew install --cask little-snitch
brew install --cask sf-symbols
# Install mas
brew install mas
# Cleanup
brew cleanup
# Remove default apps
sudo mas uninstall 408981434 # workaround to access to sudo
sudo mas uninstall 408981434 # iMovie
sudo mas uninstall 682658836 # GarageBand
sudo mas uninstall 409183694 # Keynote
sudo mas uninstall 409201541 # Pages
sudo mas uninstall 409203825 # Numbers
# Download AppStore apps
mas install 497799835 # XCode
mas install 407963104 # Pixelmator
#mas install 824171161 # Affinity Designer
# Force disable .DS_Store
git config --global core.excludesfile ~/.gitignore
echo .DS_Store >> ~/.gitignore
# Disable brew analytics
brew analytics off
# Restore mackup
echo "[storage]" >> ~/.mackup.cfg
echo "engine = google_drive" >> ~/.mackup.cfg
echo "directory = Mackup" >> ~/.mackup.cfg
echo "[applications_to_ignore]" >> ~/.mackup.cfg
echo "vscode" >> ~/.mackup.cfg
echo "atom" >> ~/.mackup.cfg
echo "docker" >> ~/.mackup.cfg
mackup restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment