Skip to content

johnfernkas/dotfiles

Repository files navigation

dotfiles

Personal dotfiles managed with chezmoi.

Bootstrap a new Mac

Run this single command on a fresh machine. It installs chezmoi, pulls this repo, and applies everything:

sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply johnfernkas

You'll be prompted for your name and email (used in ~/.gitconfig). After that, the bootstrap scripts will run automatically in order:

  1. Prerequisites — installs Homebrew and oh-my-zsh
  2. Packages — runs brew bundle to install all apps and tools
  3. macOS defaults — sets Dock, Finder, screenshot, and keyboard preferences

Before running: Sign into the Mac App Store. Xcode (~12 GB) is installed via mas and requires an active App Store session.

If Xcode was skipped (not signed in), install it from the App Store then run:

bash ~/.local/share/chezmoi/scripts/setup-xcode.sh

Keeping in sync

On an existing machine, pull and apply the latest changes with:

chezmoi update

Adding a new app

Edit the dot_Brewfile and run chezmoi apply. The package script re-runs automatically whenever the Brewfile changes.

Useful commands

chezmoi edit ~/.zshrc       # edit a managed file in your $EDITOR
chezmoi diff                # preview what would change before applying
chezmoi apply               # apply changes to the home directory
chezmoi update              # pull latest from GitHub and apply
chezmoi cd                  # jump to the chezmoi source directory

What's managed

File Destination
dot_gitconfig.tmpl ~/.gitconfig
dot_zshrc.tmpl ~/.zshrc
dot_Brewfile ~/.Brewfile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors