Back to projects

macOS Automation

Bash scripts to automate a fresh install of macOS

Features

  1. Installs Homebrew
  2. Restores current backup:
    • Dotfiles (.config, .zprofile, .zshrc).
    • Installs Homebrew packages using a Brewfile.
  3. Modifies default macOS preferences:
    • Dock: Hide automatically, recent apps disabled.
    • Finder: Show file extensions, hidden files, path bar, set List View as default, keep folders on top, and search on the current folder.
    • Spaces: Automatically rearrange Spaces disabled, group by app on Mission Control.
    • Security: Enable firewall.

How to use

Main:

Terminal window
git clone https://github.com/Jaycedam/mac-setup.git && cd mac-setup && bash main.sh

Update local backup;

Terminal window
cd path-to-project
bash backup.sh

GitHub