Opinionated automation shell scripts to set up macOS. The script does the following:
- Installs Homebrew.
- Restores current backup:
- dotfiles (.config folder, .zprofile, .zshrc)
- VSCodium settings.json and installed extensions.
- Installed packages by Homebrew on a Brewfile.
- Changes some macOS default preferences:
- Dock: Autohide, Recents disabled
- Finder: Show file extensions, show hidden files, show path bar, list view default, keep folders on top, search scope to current folder.
- Spaces: Disable rearrange Spaces automatically, group by app in mission control.
- Security: Enables firewall.
- Sets Fish as default shell
For the automated setup, run:
git clone https://github.com/Jaycedam/mac-setup.git && cd mac-setup && bash main.sh
It will prompt you to install Xcode Command Line Tools if you don't have git.
✅ Apple Sillicon on Ventura
✅ Apple Sillicon on Sonoma
Some settings must be changed manually due to API limitation or lack of Apple documentation.
- Lock screen: Set required password after screen is off to inmediatly for security reasons.
- Safari: Enable hide my ip and disable telemetry in Privacy tab.
- Change Keyboard Shortcut Move focus to next window to ⌘| to enable changing instances of the same app (necessary on Latam Keyboard), available on Keyboard - Keyboard Shortcuts - Keyboard.
Just run bash backup.sh
to update the backup files. It will create a backup of everything listed in the previous section. If you're going to modify the list of packages to install, make sure to remove its dependencies on the different script modules. You will need Homebrew to backup your current packages, or you can edit the Brewfile directly.