Skip to content

agnesk92/macos-setup

Repository files navigation

MacOS setup automation

⚡ Setup

For pre-commit secret scanning, set up Gitleaks:

# install pre-commit and gitleaks
pipx install pre-commit
brew install gitleaks

# set up pre-commit hook
pre-commit install

🔧 Run the scripts

Run setup.sh

./setup.sh

Or run the scripts per demand

# Install basics, eg. git
./scripts/setup-basics.sh

# Clone config repo and setup
# Note: needs ssh set up if the repo is private
./scripts/setup-configs.sh

# MacOS preferences - dock, animations, toolbar, etc.
./scripts/setup-macos.sh

💡 Setup details

Dotfiles

Uses GNU Stow for dotfile management.

Applications

Using Homebrew

# Create Brewfile with installed packages
brew bundle dump --describe

# Install packages on a new machine
brew bundle --file=./Brewfile

♥️ Missing

  • macOS: scriptify switching ctrl & fn
  • macOS: icloud sync
  • repos: clone most important repos (eg. obsidian repos)
  • zen configs
  • scripts: ssh creation

✨ Inspiration