Skip to content

clain23/setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mac Setup

Automated macOS setup with Homebrew and automatic backup.

πŸš€ New Mac Setup

# Clone this repo
git clone <your-repo-url> ~/setup

# Run install
cd ~/setup
./install.sh

This installs Homebrew and all packages from Brewfile.

πŸ”„ Auto-Backup Setup

Run once to enable daily automatic backups:

cd ~/setup
./setup-autobackup.sh

This will backup your Brewfile and commit changes every day at 8 PM.

πŸ“¦ Manual Backup

Want to backup now? Just run:

cd ~/setup
./backup.sh

πŸ› οΈ Managing Auto-Backup

# Run backup now (don't wait for 8 PM)
launchctl start com.user.brewfile-backup

# View logs
tail -f /tmp/brewfile-backup.log

# Disable auto-backup
launchctl unload ~/Library/LaunchAgents/com.user.brewfile-backup.plist

# Re-enable auto-backup
launchctl load ~/Library/LaunchAgents/com.user.brewfile-backup.plist

# Check if running
launchctl list | grep brewfile-backup

πŸ“‹ What Gets Backed Up

  • Brew packages - CLI tools (git, node, etc.)
  • Casks - GUI apps (Chrome, VS Code, etc.)
  • App Store apps - via mas (Slack, Telegram, etc.)

πŸ’‘ Tips

  • Login to App Store before running install.sh for mas apps to work
  • Configure git after setup:
    git config --global user.name "Your Name"
    git config --global user.email "your@email.com"
  • To change backup time, edit the Hour in ~/Library/LaunchAgents/com.user.brewfile-backup.plist

πŸ“ Files

  • Brewfile - Your packages list (auto-updated by backup script)
  • install.sh - Fresh Mac setup
  • backup.sh - Manual backup
  • setup-autobackup.sh - Enable daily auto-backup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published