My dotfiles, managed by chezmoi.
README and assorted scripts adapted from politician's dotfiles.
See previous version of my setup and configuration for macOS 10.15 Catalina through macOS 14 Sonoma laptops at suzannealdrich's system-config
If you want to fork it for your own usage
-
Install command line tools
xcode-select --install
-
Insert Smart Card (Yubikey, Ledger, etc.)
-
Install Homebrew, GPG, Chezmoi and launch configuration
# Install Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" [[ $(arch) == "arm64" ]] && eval "$(/opt/homebrew/bin/brew shellenv)" || eval "$(/usr/local/bin/brew shellenv)" # Install GPG and Chezmoi brew install gpg chezmoi # Use configuration from this repo chezmoi init suzannealdrich --apply
-
My personal todo list of manual actions:
- This script will open Docker Desktop. You must manually grant the needed permissions and enable start at boot.
- Grant Full disk access to Terminal.
- Reboot
sudo shutdown -r now - Install Xcode
mas install 497799835(was removed from this script because the 12GB+ download can be slow as hell)
This repo includes scripts to prepare system, configure system, and install packages. Run these once.
This repo includes a script to configure several applications settings. Run this after installing the applications.
chezmoi updateFor example, modify ~/.zshrc (already managed by chezmoi)
chezmoi edit ~/.zshrcApply changes
chezmoi applyCommit changes
chezmoi git add .
chezmoi git commit
chezmoi git pushMake sure all files are up to date with chezmoi
cd ~
# Export list of brew/cask/mas installed packages
brew bundle dump --force
# Re-add linked files
chezmoi re-add
# Re-add VSCode settings as multi-arch template
sed 's|'"$(brew --prefix)"'|{{ if eq .chezmoi.arch "arm64" }}/opt/homebrew{{ else }}/usr/local{{ end }}|' ~/Library/Application\ Support/Code/User/settings.json > $(chezmoi source-path)/private_Library/private_Application\ Support/private_Code/User/settings.json.tmplReview changes and commit
chezmoi git status
chezmoi git add .
chezmoi git commit
chezmoi git pushIf you want to fork this repo and modify it for your own personal/commercial usage, please do so freely, it is licensed accordingly (MIT).
Before you apply any settings, don't forget to:
- Customize chezmoi settings
- Remove my encrypted files and eventually re-add your own. See which files are encrypted with
find $(chezmoi source-path) -type f -name "encrypted*.asc"