Back to projects

macOS Automation

Bash scripts to automate a fresh install of macOS


  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


Terminal window
git clone && cd mac-setup && bash

Update local backup;

Terminal window
cd path-to-project