TextEdit Will Corrupt Your Shell Commands and Lie to Your Face About It

I spent an embarrassing amount of time today chasing a dquote> prompt in zsh. Not because the commands were wrong. Not because of hidden characters in the source files. Not because of clipboard managers, bracketed paste mode, or terminal emulator quirks. Because TextEdit, Apple’s own plain text editor, was silently replacing a closing ASCII double quote with a Unicode smart quote, and doing it inconsistently enough to make the problem look like something else entirely. ...

February 20, 2026 · 5 min · Zac Lohrenz

Automating macOS Setup and Backups with Homebrew, Dotfiles, and Bootstrap Scripts

Overview This guide walks through my automated macOS setup and backup workflow. The goals: Quickly set up a new Mac by running a single bootstrap script. Avoid manually remembering installed apps, preferences, and configs. Automatically back up my dotfiles and Homebrew installs to a GitHub repo. Include App Store apps, macOS preferences, and even my AirPrint printer. Core Components 1. Homebrew Bundle I use Homebrew’s brew bundle dump to capture all my brew formulas, casks, and MAS (Mac App Store) apps into a Brewfile. ...

June 27, 2025 · 3 min · Me