Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Answers and machines

teeup reads its settings from two files: the answers file that the wizard writes, and an optional machine file for one Mac. teeup reads the machine file second, so it overrides the answers file.

FileWritten byHolds
~/.config/teeup/answersThe wizard, teeup config and teeup update --main or --releaseYour name and email, the theme, the daily set, the Emacs flavor, the editors, the package manager, the update channel
~/.config/teeup/machines/<hostname>.confYouSettings pinned for this Mac, and the only file where you configure a work identity

<hostname> is the short name that hostname -s prints.

The answers

The answers file is a list of KEY="value" lines that only you can read.

KeyMeaningApplied by
TEEUP_NAME, TEEUP_EMAILYour git identityteeup configure git
TEEUP_THEMEThe themeteeup theme set <name>
TEEUP_DAILYyes or no: installs the daily set./bootstrap
TEEUP_EMACS_FLAVORstarter, doom, spacemacs or noneteeup configure emacs and teeup update
TEEUP_EDITORThe editor for a local session, for example emacsclient -c or zed --wait. See Editors.A new terminal
TEEUP_TERMINAL_EDITORThe editor over SSH, and when TEEUP_EDITOR has no value, for example emacsclient -t or nvimA new terminal
TEEUP_PACKAGE_MANAGERhomebrew or macports./bootstrap the first time
TEEUP_UPDATE_CHANNELrelease or main: what teeup update follows. No value means release. See Release or main.teeup update

teeup config

CommandWhat it does
teeup config getShows the file paths and every answer, with [pinned by <host>.conf] next to each answer that the machine file overrides.
teeup config get TEEUP_THEMEShows the value that teeup reads, with the pin included.
teeup config set TEEUP_NAME Ada LovelaceChanges one answer. The rest of the line is the value, so you do not need quotes.
teeup config editOpens the answers file in your editor.

teeup does not apply an answer when you write it. After teeup config set or teeup config edit, teeup prints the command that applies the change:

teeup config set TEEUP_EMACS_FLAVOR doom
✅ Set TEEUP_EMACS_FLAVOR in /Users/you/.config/teeup/answers
🔹 Run: teeup configure emacs -- that is what reads TEEUP_EMACS_FLAVOR (teeup update now covers it too).

teeup config edit opens $VISUAL, then $EDITOR, then vi. teeup prints that editor and the variable that chose it. The teeup shell sets EDITOR and VISUAL from your editor answers (see Editors). When you close the editor, teeup checks that every line has the KEY="value" format. If a line does not, teeup restores the previous file and prints the broken line. Because teeup reads the answers file at the start of every command, a broken line breaks teeup config edit.

teeup config set does not accept two keys:

  • TEEUP_PACKAGE_MANAGER, after teeup installs a package manager, because teeup does not support a change of package manager after that.
  • TEEUP_WORK_EMAIL and the other TEEUP_WORK_* keys, because teeup reads them only from the machine file (see Identity).

The machine file

If one Mac needs different settings from your other Macs, create the machine file from the sample in the checkout:

mkdir -p ~/.config/teeup/machines
cp ~/.local/share/teeup/machines/example.conf.sample ~/.config/teeup/machines/$(hostname -s).conf

Every setting in the machine file is optional:

KeyExampleEffect
TEEUP_SKIPTEEUP_SKIP="aerospace"The capabilities that this Mac never installs, separated by spaces.
TEEUP_PACKAGE_MANAGERTEEUP_PACKAGE_MANAGER="macports"Pins the package manager.
TEEUP_THEMETEEUP_THEME="catppuccin"Pins the theme.
TEEUP_EMACS_FLAVORTEEUP_EMACS_FLAVOR="doom"Pins the Emacs flavor.
TEEUP_EDITOR, TEEUP_TERMINAL_EDITORTEEUP_EDITOR="zed --wait"Pins the editors.
TEEUP_WORK_EMAIL and related keyssee IdentityA second, work SSH key.
TEEUP_PERSONAL_SSH_HOST and TEEUP_PERSONAL_GH_ACCOUNTsee IdentityThe SSH host alias and GitHub login for the personal identity.

A pinned key overrides the answers file. The wizard does not ask about a pinned theme, flavor, editor, or package manager. If you set a different value with teeup config set, it warns you that the pin overrides it. To change a pinned value, edit the machine file.

teeup checks the machine file. An invalid shell file or a malformed TEEUP_WORK_EMAIL stops every teeup command with an error.

Your file or the checkout’s

teeup searches for the machine file in two locations and uses the first file it finds:

  1. ~/.config/teeup/machines/<hostname>.conf is your personal file, and teeup update does not change it.
  2. machines/<hostname>.conf in the teeup checkout is for users who keep a fork of teeup.

teeup does not merge the two files. If both exist, it tells you which one it uses.