Skip to content

agnesk92/macos-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacOS setup automation

⚡ Setup

For pre-commit secret scanning, set up Gitleaks:

Assuming you use Mise and UV for Python:

# install pre-commit and gitleaks
uv tool install pre-commit
brew install gitleaks

# set up pre-commit hook
pre-commit install

# try git leaks
gitleaks dir . --verbose

🔧 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

# Check validity
brew bundle check --file=Brewfile.personal

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

# Dry-run cleanup
brew bundle cleanup --file=Brewfile.personal

♥️ Missing

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

✨ Inspiration