gonnawork | My Workspace, as Code
Treating a macOS dev environment like infrastructure: an idempotent installer, symlinked dotfiles, a Brewfile and panels that keep git and coding agents in view.
3 min readmacos · automation · productivity · dotfiles
Every new Mac starts the same way. Day one: excitement. Day two: what was that alias again? Day three: 1 a.m., digging a .zshrc out of the backup of a laptop I no longer own.
I design systems for a living, so it got a little embarrassing that the one I use eight hours a day was held together by memory and luck. I gave it the treatment I'd give any production environment: it lives in a repo, and one command builds it. That repo is gonnawork.
Setup is a tax you pay forever
A messy environment doesn't cost you the afternoon you spend setting it up. It costs you the drip: the tool that's missing, the alias that only exists on one machine, the hunt for that command you ran last month.
Small automations compound. An alias that saves 3 seconds, used 200 times a day, is 10 minutes a day. Over a working year that's about 40 hours: a full week back, just from typing lg instead of lazygit. Not the best investment of my life, but it's up there.
Workspace as code
The installer follows the rules I'd ask of any deployment script:
- Declarative. Every tool is in a
Brewfile. If it isn't in the file, it isn't on the machine. - Idempotent. Run it twice; the second run changes nothing.
- Reversible. Nothing is overwritten silently. Whatever it replaces is kept as
<file>.backup-<date>. - Updatable. Dotfiles are symlinks into the repo, so
git pullis the update. - No secrets in git. Tokens and work paths go in
~/.zshrc.local, which is loaded but never committed.
Idempotency comes down to one small function. Before linking, it checks whether the link is already right. Only if it isn't does the old file get moved aside:
# Symlinks a repo file into place, so `git pull` updates it.
link() {
local src="$REPO/$1" dest=$2
mkdir -p "$(dirname "$dest")"
[[ -L $dest && "$(readlink "$dest")" == "$src" ]] && return
backup "$dest"
ln -s "$src" "$dest"
say "linked $dest"
}If you're scared to run your own installer, you won't run it. Being safe to re-run is what makes it useful.
Efficiency is not leaving the room
Speed is half of it. The other half is not switching context. gonnawork sets up Herdr with panels next to the terminal: Files, Changes, Git, Stats, Ports and Skills. The diff, the branch graph and what each coding agent is doing stay in view, so I don't open an IDE just to look at a file.
The rest is keyboard-first: z api jumps to a folder I've been to (zoxide), ctrl+r fuzzy-searches my history (fzf), and lazygit stages hunks without a fight with git add -p. The Stats panel reads Claude Code's local transcripts and shows each agent's context use and API-equivalent cost. Observability, but for my desk.
Steal this, with or without gonnawork
- Run
brew bundle dumptoday. You now have a Brewfile. - Keep your dotfiles in a repo and symlink them.
- Make your installer safe to run twice.
- Find the command you type most and give it an alias.
My Mac went from pet to cattle. Still very cute, though. And if it ever falls into the Han River, I'm back at work in the time it takes Homebrew to download everything.