Welcome to teeup

Your Mac, ready to code. teeup is an opinionated, reproducible macOS environment for developers. The ./bootstrap command installs a set of developer tools, configures them, and sets one colour theme and one font. The teeup command manages changes after the installation.
The idea comes from Omarchy, the environment that DHH made for Arch Linux and Hyprland. Omarchy shows that a developer can distribute a personal environment with defaults, a discovery menu, lazy installations, and a manual. teeup brings this model to macOS, and runs on macOS only: on other systems, ./bootstrap stops.
What you get
After the first run of ./bootstrap, you have:
- A zsh login shell with the teeup configuration, the Starship prompt, and modern tools (ripgrep, fd, fzf, bat, eza, zoxide, and more).
gitwith your identity, an ed25519 SSH key, and the signed-in GitHub CLI.misefor the language runtimes, WezTerm as the terminal, and the JetBrainsMono Nerd Font.- AeroSpace to tile the windows, the Caps Lock key as the Control key, and the macOS preferences for development.
- Emacs, if you answer yes to the daily set.
All other tools wait until you request them. These include Zed, Obsidian, Firefox Developer Edition, Neovim, VS Code, Cursor, Docker through Colima, and the AI coding tools. When you first type docker or claude, teeup asks if you want to install the tool.
How it is built
Each piece of teeup is a capability: a directory with a metadata file, an install script, and a configure script. For example, git, wezterm, emacs, keyboard, and macos-defaults are capabilities. The teeup command installs, configures, updates, resets, and removes them one at a time, and teeup list shows every capability.
teeup copies most configuration files one time, and after that they belong to you. teeup keeps its defaults in its checkout directory, so updates improve the defaults but do not overwrite your changes.
You can run ./bootstrap again without risk, because every step checks before it acts. A second run repairs an incomplete first run.
Who it is for
teeup is for users who work in a terminal and want to rebuild a Mac from the start in one session. They prefer to read about a tool before they run it. Every command that modifies the system has a dry run mode that prints the actions but does not run them.
teeup is an opinionated configuration that selects zsh, WezTerm, and mise for you and sets the macOS preferences. If you already keep your dotfiles in chezmoi or an older teeup, teeup migrate legacy removes that configuration, as Migrating explains.
This manual describes teeup 0.4.0-beta.
Reading this manual
The pages are short, and each page covers one topic. Part 1, The Basics, helps you change a new Mac into a working environment:
- Getting started: the requirements, the first run, and the configuration questions.
- The teeup command: every verb in one table.
- The menu: the same actions in one keyboard-driven list.
- Tiers: what teeup installs now, and what waits for you.
The later parts describe the applications, the configuration, how to migrate to and from the environment, and how to troubleshoot.
Getting started
What you need
| Requirement | Detail |
|---|---|
| macOS | teeup does not set a minimum version. ./bootstrap refuses to run on other systems. |
| Apple Silicon or Intel | Both architectures work. If you use Apple Silicon, teeup also installs Rosetta 2 for Intel-only applications. |
| Your own account | Run ./bootstrap as your own user, not as root. At the start, the script asks for your password for sudo. |
| A package manager | teeup installs Homebrew on macOS 13 and newer. MacPorts is the default on macOS 12 and older, and you must install it first from macports.org. |
| A network connection | You need a network connection for Homebrew, for the packages, and to sign in to GitHub. |
Some applications need a minimum macOS version: AeroSpace and Google Chrome need macOS 13, and Cursor needs macOS 12. On an older Mac, teeup marks these applications as not applicable and continues.
The first run
Run the installer in Terminal. Use curl or wget:
curl -fsSL https://teeup.systemhalted.in/install.sh | bash
wget -qO- https://teeup.systemhalted.in/install.sh | bash
The installer does three things:
- If the Xcode Command Line Tools are missing, it installs them with
softwareupdate. It asks for your password forsudo. Ifsoftwareupdatedoes not find the tools, Apple’s installer opens, and the script waits until you complete it. - It clones teeup into
~/.local/share/teeupand checks out the newest release. - It runs
./bootstrapin the checkout.
When ./bootstrap succeeds, the installer starts a new zsh login shell with the teeup settings, so the teeup command works at once.
The installer stops if the Mac does not run macOS, or if you run it as root. If ~/.local/share/teeup is a teeup checkout already, the installer runs its ./bootstrap again. If the directory exists but is not a git checkout, the installer stops and changes nothing. It also stops, naming the folder and a command to inspect or fix it, when ~/.local/share is not writable.
To give options to ./bootstrap, put them after bash -s --:
curl -fsSL https://teeup.systemhalted.in/install.sh | bash -s -- --skip-daily
With --dry-run, the installer shows the Command Line Tools step and the clone, but does not do them. Then it stops, because the dry run of ./bootstrap needs the checkout.
To read the installer before it runs, download it first:
curl -fsSLo install.sh https://teeup.systemhalted.in/install.sh
less install.sh
bash install.sh
You can also clone teeup by hand and run the bootstrap script:
git clone https://github.com/systemhalted/teeup.sh ~/.local/share/teeup
cd ~/.local/share/teeup
./bootstrap --dry-run # optional: print every command without running it
./bootstrap
If macOS offers to install the Command Line Tools when you run git, accept the prompt. Then run the git clone command again. teeup also needs these tools, and installs them if they are missing.
./bootstrap accepts three options:
| Option | What it does |
|---|---|
--dry-run | Print every command, but do not run it. |
--reconfigure | Ask the setup questions again, even if the answers exist. |
--skip-daily | Install only the core tier on this run. |
The questions
After teeup installs the Command Line Tools, the first prompt asks which package manager to use, and teeup offers the one that it finds first. teeup then installs its runtime and asks the remaining questions:
| Question | Default | Saved as |
|---|---|---|
| Package manager | Homebrew on macOS 13 and newer. MacPorts on macOS 12 and older. | TEEUP_PACKAGE_MANAGER |
| Your full name | The name of your macOS account. | TEEUP_NAME |
| Personal email (your git identity) | None. | TEEUP_EMAIL |
| Theme | The first theme in the list. | TEEUP_THEME |
| Install the daily set too (Emacs)? | Yes. | TEEUP_DAILY |
Emacs flavor: starter, doom, spacemacs or none | starter | TEEUP_EMACS_FLAVOR |
| Default editor | emacsclient -c with the daily set and an Emacs flavor (emacsclient -t with MacPorts, which has no window build). nvim if not. | TEEUP_EDITOR |
| Terminal editor | emacsclient -t with the daily set and an Emacs flavor. nvim if not. | TEEUP_TERMINAL_EDITOR |
teeup asks the Emacs question only if you answer yes to the daily set. If you enter an empty name or an invalid email, teeup asks the question again, up to three attempts in total. If your machine file pins a package manager, theme, Emacs flavor, or editor, teeup does not ask that question and shows the pinned value. See Answers and machines.
teeup saves the answers to ~/.config/teeup/answers, and a second ./bootstrap run uses them again without the questions. To change the answers, run ./bootstrap --reconfigure or use teeup config.
What it installs
teeup installs the core tier first, in this order:
- The Xcode Command Line Tools
- The package manager
- The teeup runtime
~/Work- zsh
- Starship
- The command-line tools
- Keychain secrets
- git
- SSH
- The GitHub CLI
- mise
- WezTerm
- The Nerd Font
- AeroSpace
- The Caps Lock mapping
- macOS preferences
- The theme
After the core tier, if you answered yes, teeup installs the daily tier: Emacs. Tiers explains the difference.
A few steps stop and wait for your input:
- The step to change your login shell to
/bin/zshasks for your password. ssh-keygenasks for a passphrase for the new key, and macOS saves the passphrase in your Keychain.- The GitHub CLI opens your browser for you to sign in, and then uploads the key.
If a core step fails, teeup stops the run and shows the name of the failed step. If a daily step fails, teeup prints a warning and the run continues. To install a failed daily step later, run teeup install <name>. teeup writes a log of the full run to ~/.local/state/teeup/logs/bootstrap.log.
After the first run
The last lines of output tell you the next steps:
Open a new terminal (the zsh capability puts ~/.local/bin on PATH) and try: teeup status
The shell where you ran ./bootstrap started before teeup existed, so it cannot find teeup yet. Open a new terminal. To use the old terminal, run the command by its full path: ~/.local/bin/teeup status.
You can run ./bootstrap again later without risk, because each step checks the current state before it acts. A second run repairs unfinished steps.
The teeup command
All teeup actions after the first run use one command, teeup, which is in bin/teeup.
The ./bootstrap script links it to ~/.local/bin/teeup.
Most verbs need the name of a capability.
Run teeup list to see all capabilities.
Installing and changing things
| Command | What it does |
|---|---|
teeup install <capability> | Install and configure a capability and all the items that it requires. Run it again to repair a capability that you broke manually. |
teeup install dev-env <lang> | Install a language runtime with mise: python, node, java, ruby, rust, or go. |
teeup install font <name> | Install a Nerd Font and configure every tool to use it. Run teeup install font list to see the known font names. |
teeup configure <capability> | Configure the capability again. |
teeup reset <capability> | Restore the configuration files to the teeup version. teeup makes a backup of your files and prints the differences. |
teeup update | Update the machine: move the checkout to the newest release, upgrade the packages and the mise tools, and run the migrations. Then configure the core and daily tiers again, render the theme, and run your hooks. |
teeup update --main | Follow main instead of releases, now and in later updates. teeup update --release follows releases again. See Updates. |
teeup update <capability> | Upgrade the packages for one capability, or run its own update script if it has one. Then configure the capability again. |
teeup remove <capability> | Undo what a capability installed. Your configuration files remain. See Removing a capability. |
teeup uninstall | Remove teeup from the Mac after you confirm. Add --packages to uninstall the packages. Add --identity to remove your git identity. Add --yes to run without prompts. See Uninstall. |
teeup theme set <name> | Apply a theme to all themed tools. If you do not give a name, teeup shows a picker. |
teeup theme list | List the themes. |
teeup theme current | Print the current theme, as teeup theme with no verb also does. |
teeup launch <app or capability> | Start a GUI app, and install its capability first if the app is missing. App names do not need quotes. |
Removing a capability
-
teeup remove <capability>runs theremovescript of the capability, if it has one, and then uninstalls the casks and packages that its metadata lists. It also removes the links of the tools that it installed through mise, and uninstalls their pinned versions. Finally, teeup forgets the capability, but your configuration files remain.A
removescript is optional, and thirteen capabilities ship one today:- The
macos-defaultsscript restores preferences. - The
terminal-appscript deletes the teeup profiles and restores the default profile. - The
emacsandkeyboardscripts unload their LaunchAgents. - The
colimascript stops its VM. - The script of each of the five
ai-*capabilities deletes its wrapper. - The
aibundle script removes all five leaves. - The
ca-bundlescript deletes its PEM bundle. - The
emacsandweztermscripts uninstall their MacPorts ports.
The command refuses to run if another installed capability requires this one. It also refuses if the capability does not have a
removescript, packages, casks, or tools from mise. Seven capabilities have nothing to undo:dev-dirs,package-manager,secrets,ssh,teeup-runtime,theme, andxcode-clt. For these capabilities,teeup remove secretsand similar commands tell you so, and the capability stays marked as installed. If aremovescript reports “not applicable on this machine”, teeup reports that status, not a clean removal. - The
Looking at the machine
| Command | What it does |
|---|---|
teeup status | Show the version, the package manager, the answers file, the installed capabilities, the lazy shims, and the language runtimes. |
teeup list | Show every capability with its tier and summary. |
teeup list --tier core | Show capabilities for one tier: core, daily, or lazy. |
teeup doctor | Check the installed items and show how to fix the problems. The command exits 0 when the machine is healthy, 1 when it finds problems, and 2 when it cannot check an item. |
teeup doctor <capability>... | Check one or more capabilities, for example teeup doctor git starship. |
teeup has <capability> | Exit 0 when the capability is installed, for use in scripts and menus. |
teeup version | Print the teeup version. On a release, this is the version only, for example 0.3.0-beta. After a release, it also shows the number of commits after the release, the branch and the commit, for example 0.3.0-beta+6 (main, 3c4b7b4). |
Settings and secrets
| Command | What it does |
|---|---|
teeup config get | Show the answers file, the machine file (if there is one), and every answer, with a mark on the answers that the machine file pins. |
teeup config get <KEY> | Print one answer, for example TEEUP_THEME. |
teeup config set <KEY> <value> | Change one answer, and show the command that applies it. |
teeup config edit | Open the answers file in $VISUAL, then $EDITOR, then vi. teeup prints which one it opens. Set VISUAL= to use $EDITOR. If an edit breaks the file, teeup restores the previous file. |
teeup secret set <name> | Store a secret in the macOS Keychain. teeup asks for the value but does not echo it. |
teeup secret get <name> | Print a stored secret. |
teeup secret rm <name> | Delete a stored secret. |
Everything else
| Command | What it does |
|---|---|
teeup menu | Show all actions in a keyboard-driven list. See The menu. |
teeup migrate legacy | Remove the old teeup and the chezmoi configuration on this Mac. See Migrating. |
teeup commands | List the capability names, one name per line. |
teeup commands --check | Lint the capability metadata. |
teeup dev new-capability <name> | Start a new capability and its test from a skeleton. |
teeup dev add-migration | Start a migration script for the machines that are already configured. |
teeup dev check | Run the metadata, the menu, the shellcheck, and the test checks. Add a capability name to check only that one. |
teeup lazy-run <capability> <command> | The command that a lazy shim runs. You will rarely type it, and Tiers explains it. |
teeup help | Show the short usage text. |
The dev commands build teeup.
Previewing with DRY_RUN
Put DRY_RUN=true before a command.
teeup then prints the commands but does not run them, so it does not install, write, or delete anything.
DRY_RUN=true teeup update
DRY_RUN=true teeup remove cursor
DRY_RUN=true teeup migrate legacy
teeup shows skipped commands in this format:
🔍 [DRY-RUN] Would execute: brew update
The ./bootstrap script uses a flag: ./bootstrap --dry-run.
Before you use a command that removes items, such as teeup remove, teeup uninstall, or teeup migrate legacy, do a dry run.
The menu
teeup menu opens a list of teeup actions in sections. When you select a section and then an action, the menu runs the applicable teeup command.
teeup menu
The sections
| Section | What is in it |
|---|---|
| Install | Five submenus: Editors, Apps, AI, Shell and containers, and Language runtimes. |
| Launch | The GUI apps that teeup installed: WezTerm, Emacs, Zed, Firefox Developer Edition, Obsidian, and the others. |
| Style | Select a theme, show the current theme, and list the fonts that teeup knows. |
| Check | The doctor, status, every capability, and a lint of the capability metadata. |
| Setup | Show or edit the answers, and preview or run the retirement of the old teeup and chezmoi wiring. |
| Update | Runs teeup update. |
The lists change for each machine. An Install row does not show after that capability is installed, and a Launch row shows only after its capability is installed. Each row uses teeup has to decide.
When you select an action, the menu runs it and closes, so run teeup menu again for the next action.
Moving around
teeup draws the menu with the best picker that it finds. It uses gum, which the teeup runtime installs, then fzf, then a plain numbered list. The numbered list works anywhere, also over ssh and inside a script.
| Picker | Choose | Go back one level |
|---|---|---|
| gum | Arrow keys, then Return | Escape |
| fzf | Type to filter, then Return | Escape |
| Numbered list | Type the number or the exact label, then Return | An empty line or q |
Every submenu ends with a .. row, which goes back one level. If you go back from the top level, the menu closes. If you type a number that is out of range, the numbered list asks again and does not close.
To force one picker, set TEEUP_MENU_PICKER to gum, fzf or plain. The default value is auto.
TEEUP_MENU_PICKER=plain teeup menu
Opening directly
Every row has a dotted id, for example install, install.editors or style.theme. Give a dotted id to teeup menu to open a submenu directly, or to run an action without the menu:
| Command | What happens |
|---|---|
teeup menu install | Opens at the Install section. |
teeup menu install.editors | Opens at the list of editors. |
teeup menu style.theme | Runs teeup theme set, which shows the theme picker. |
teeup menu check.doctor | Runs teeup doctor. |
Previewing and changing the menu
If you set DRY_RUN=true, you can still move through the menu, but an action prints [DRY-RUN] Would run: <command> and does not run.
The share/teeup/menu.json file in the checkout defines the menu. To add, change, or hide a row, write ~/.config/teeup/menu.json in the same format. A row in this file with the same id replaces the shipped row. Hooks and extending gives the format.
Tiers
Every capability belongs to one of three tiers, and the tier decides when teeup installs it.
| Tier | Installed | Examples |
|---|---|---|
| core | Always, by ./bootstrap | zsh, Starship, git, SSH, mise, WezTerm, the Nerd Font, AeroSpace, the theme |
| daily | By ./bootstrap, if you answer yes to the daily set | Emacs |
| lazy | The first time you use the capability, or when you ask for it | Zed, Obsidian, Firefox Developer Edition, Neovim, VS Code, Cursor, Chrome, Docker through Colima, tmux, Ollama, Herdr, the AI tools |
To see the full list with the tier of each capability, run teeup list, or see one tier at a time:
teeup list --tier lazy
Core
Every terminal session needs the core tier. capabilities/core.list sets the sequence, and each entry needs only the entries that come before it. If a core capability fails, ./bootstrap stops, because the entries after it depend on it.
Daily
The daily tier contains larger applications. The wizard asks “Install the daily set too (Emacs)?” and records the answer as TEEUP_DAILY. ./bootstrap --skip-daily skips the daily tier for one run. If a daily capability fails, teeup prints a warning and the run continues.
teeup update configures the core and daily tiers again. If you remove a core or daily capability with teeup remove, the next ./bootstrap installs it again. To stop this, add the capability to TEEUP_SKIP in your machine file:
# ~/.config/teeup/machines/<hostname>.conf
TEEUP_SKIP="aerospace"
Lazy
teeup installs a lazy capability when you use it, in one of three ways.
| You do this | teeup does this |
|---|---|
Run the command of the capability, for example, docker, nvim, tmux or claude | A shim asks to install the capability, and then teeup runs your command. |
teeup launch Cursor | teeup installs the application if it is missing, and then opens it. |
teeup install colima | teeup installs the capability immediately. |
What a shim does
For every command that a lazy capability provides, teeup writes a small script, a shim, into ~/.local/state/teeup/shims. That directory is the last entry on your PATH, so a shim runs only when no other program on the machine provides the command.
When you run the command in a terminal for the first time, the shim asks:
docker is provided by capability colima. Install now?
The default selection is yes. teeup installs the capability and its requirements, and then runs docker with your arguments. On future runs, your shell finds the real command first, so the shim does not run again. teeup writes the install output to ~/.local/state/teeup/logs/lazy.log.
If you answer no, teeup does not install the capability, but shows the command for future use:
Not installed. When you want it: teeup install colima
If there is no terminal, a shim does not wait for an answer. If a script or an editor runs the shim, it prints the teeup install command and exits with status 127.
The AI tools have a second step. The shim for claude installs the ai-claude capability, and mise downloads the tool when it runs for the first time. For more information, see AI tools.
Lazy capabilities and the rest of teeup
teeup updatedoes not configure lazy capabilities, because the configuration of a lazy capability can start a virtual machine, as Colima does.teeup removeremoves a lazy capability but keeps its shim, so if you run the command again, the shim offers to install the capability.teeup statuslists the shims under “Lazy shims”.
Themes
teeup has four themes: catppuccin, everforest, gruvbox, and tokyo-night. Every theme has a dark palette and a light palette. When macOS changes the appearance, WezTerm, Zed, VS Code, and Emacs change palettes. Terminal.app, Starship, and bat select the palette that matches the appearance when teeup runs or when a new shell starts. After you change macOS between light and dark, run teeup theme set --reload and open a new window.
| Command | What it does |
|---|---|
teeup theme set <name> | Change the theme in all applications. |
teeup theme set --reload | Apply the current theme again. Run this command if you manually change or delete a file. |
teeup theme current | Show the current theme. |
teeup theme list | Show all available themes. |
You can also use the Theme row in the menu (teeup menu style.theme) to select a theme from a list.
What is themed
A theme applies to WezTerm, Terminal.app, Starship, bat, Zed, VS Code, Neovim, and Emacs (the starter and Doom flavors).
teeup disables the default Doom template theme so that the teeup theme applies, but your own doom-theme setting overrides it.
When you set a theme, teeup creates a Terminal.app profile named teeup <Theme> <Mode> (for example, teeup Tokyo Night Dark). The new profile becomes the default and startup profile, so a new Terminal.app window or a restart uses it. teeup does not change your other profiles. If you remove the Terminal.app integration (teeup remove terminal-app), teeup restores your old default profile.
Custom themes
You can write a custom theme, which replaces a teeup theme that has the same name.
Put your custom theme in ~/.config/teeup/themes/<name>/ as dark.toml and light.toml, in the same format as a teeup theme. To start, copy a teeup theme and change the values.
You must keep all the keys. Each value must be a hex color (#rrggbb) or a simple name. A simple name contains only letters, digits, spaces, and the characters . _ ( ) + -, and starts with a letter or a digit (for example, Catppuccin Mocha). You must also include mode = "dark" in dark.toml and mode = "light" in light.toml.
Fonts
teeup installs and configures Nerd Fonts. A Nerd Font patches programming fonts with icons from Material Design, FontAwesome, and other sets, and these icons show in file listings, prompts, and editors.
| Command | What it does |
|---|---|
teeup install font <name> | Download and set a Nerd Font for every tool. |
teeup install font list | Show all the Nerd Fonts that you can install. |
When you install a font, teeup configures WezTerm, Zed, VS Code, Neovim, and Emacs.
Terminal.app also uses the recorded font. When teeup generates its theme profile for Terminal.app, it sets the font to the one that you chose, at 13 pt. If you use a different terminal, teeup does not set its font, so set it to your Nerd Font to see the icons.
Prompt
teeup uses Starship for the shell prompt, which shows the current directory, the git status, the command duration, and other context.
The Starship configuration file is ~/.config/starship.toml.
How teeup manages it
When teeup installs Starship, it copies its own starship.toml file there one time, and does not change the file after that.
Because of this copy-once rule, teeup update never replaces your changes.
To get the newest teeup version back, run teeup reset starship, which makes a copy of your file first.
The theme palette
There are two exceptions to the copy-once rule. The first is a palette block between these markers:
# teeup:theme-palette:start
[palettes.teeup-dark]
blue = "#89b4fa"
# ...
# teeup:theme-palette:end
The second is the root palette = ... setting, which controls the active palette.
Each time you run teeup theme set, teeup updates the root palette setting and rewrites the lines between the markers, so the prompt uses your theme.
To configure your prompt, change the other settings in the file.
Put your changes outside the markers, and do not change the root palette setting.
If you do this, teeup does not replace your settings.
Terminal
The teeup terminal is WezTerm.
It is in the core tier, so every bootstrapped Mac has it, and it follows the teeup theme and font.
Open it from the Dock or Spotlight, or run teeup launch WezTerm.
In AeroSpace, press alt-enter to open it.
How the configuration fits together
| File | Owner | What it holds |
|---|---|---|
~/.config/wezterm/wezterm.lua | You | Loads the teeup layer. Add settings below its local config = ... line. |
~/.config/wezterm/local.lua | You | Machine-specific settings, which the file returns as a table. All of it is a comment at first. |
capabilities/wezterm/default/teeup/wezterm.lua | teeup | The configuration in the checkout. teeup update changes it. |
teeup copies the two files in ~/.config/wezterm one time.
local.lua understands four entries:
| Entry | Example | Effect |
|---|---|---|
font_size | font_size = 13.0 | Sets the font size. teeup install font configures the font family. |
workspaces | { key = "e", name = "work", cwd = "/Users/you/Work" } | Configures a workspace that opens when you press the leader key and then the value of key, for example e. Leader s also lists it. If it is not open yet, WezTerm opens it in cwd. |
hyperlink_rules | A regex and format pair | Configures extra Cmd+Click link patterns. |
config | config = { check_for_updates = false } | Raw WezTerm settings, which override the teeup defaults. |
If you edit one of these two files, press Cmd+Shift+R to reload the configuration.
Keys
The leader key is Ctrl+Space. Press it and release it, then press the next key within one second.
| Keys | Action |
|---|---|
| Cmd+Shift+P | Open the command palette |
| Cmd+Shift+R | Reload the configuration |
| Cmd+K | Clear the scrollback and the screen |
| Leader 3 / Leader 2 | Split side by side / split top and bottom |
| Leader o, or Leader and an arrow | Move to the next pane, or to the pane in that direction |
| Leader 1 | Zoom or unzoom the current pane |
| Leader 0 | Close the current pane |
| Leader c / Leader k | Open a new tab / close the current tab |
| Leader f / Leader b | Go to the next tab / go to the previous tab |
| Leader w | Name a new workspace and open it |
| Leader s | Select a workspace from a fuzzy list: the configured workspaces, then every other open workspace |
| Leader d | Return to the default workspace |
| Leader r | Start resize mode, where the arrows resize the pane. Escape or Return stops it. |
| Leader v | Start copy mode |
| Leader q | Start quick select |
The split and pane keys follow Emacs: 2 and 3 split, 0 closes, 1 zooms, and o moves to the next pane.
The prompt (Starship)
The shell prompt uses Starship, and shows the directory, git branch, git status, command duration, and a prompt character.
Starship requires a Nerd Font for its symbols. Read Fonts to configure one.
teeup copies the configuration file to ~/.config/starship.toml one time.
teeup theme set changes the colours of the prompt.
Read the Prompt page for more details.
WezTerm in a virtual machine
In a macOS virtual machine, WezTerm can fail to open a window with the error “failed to create NSOpenGLPixelFormat”.
For this reason, teeup configures WezTerm to use the WebGpu renderer inside a macOS virtual machine.
You can change this setting in ~/.config/wezterm/local.lua:
return {
config = {
front_end = "OpenGL",
},
}
Raw WezTerm settings go inside config, because WezTerm does not read a front_end key at the top level of the table.
Terminal.app
You will use Terminal.app at least one time, to run ./bootstrap.
The teeup shell layer also works in Terminal.app, but teeup does not configure its font.
ls uses a Nerd Font to draw file icons, so Terminal.app shows most icons as boxes until you configure the font of the profile.
To configure it, click Settings, Profiles, Text, Font, and select “JetBrainsMono Nerd Font”.
Read Fonts.
MacPorts has no cask, so on MacPorts teeup installs WezTerm from the wezterm port.
The application is then in the MacPorts applications folder, not in /Applications, and teeup shows the open -a command that starts it.
Other terminals
teeup also has three other terminal applications as lazy capabilities. teeup installs them, but it does not apply themes to them or manage their fonts. Each one installs the first time you use it.
| Terminal | How to get it | Capability |
|---|---|---|
| Ghostty | teeup launch ghostty, or teeup install ghostty | ghostty |
| Alacritty | Type alacritty, teeup launch alacritty, or teeup install alacritty | alacritty |
| iTerm2 | teeup launch iterm2, or teeup install iterm2 | iterm2 |
Emacs
Emacs is in the daily tier. teeup installs the GUI build and the emacs-app cask, which puts emacs and emacsclient on your PATH. Emacs runs as a daemon from login. If you do not select a different editor, git and the shell use emacsclient (read Editors).
The four flavors
The wizard asks which configuration to install, and keeps the answer in TEEUP_EMACS_FLAVOR.
| Flavor | What teeup does |
|---|---|
starter | The default. teeup creates a thin ~/.config/emacs/init.el file that loads the small teeup layer from the checkout, which uses only the packages built into Emacs. teeup also creates ~/.config/emacs/local.el for your personal settings. |
doom | teeup clones Doom Emacs into ~/.config/emacs and runs doom install --no-env. Your private configuration is in ~/.config/doom. |
spacemacs | teeup clones Spacemacs into ~/.emacs.d. On the first start, Spacemacs completes its own configuration and writes ~/.spacemacs. |
none | teeup does not change your Emacs configuration, but the daemon still runs. See Your own configuration and teeup’s theme. |
If a directory blocks the install (for example, a starter configuration where Doom must go), teeup renames it to <name>.teeup_backup_<timestamp> and does not delete it. Emacs reads ~/.emacs.el, ~/.emacs, and ~/.emacs.d before ~/.config/emacs. If one of these paths exists, teeup warns that Emacs reads it instead, and does not change it.
Your own configuration and teeup’s theme
If you use the none flavor, you can add this code to your init.el file to use the teeup theme and font. The code only reads the teeup files. The theme follows the macOS light or dark mode when the daemon starts, and updates after each teeup theme set or teeup install font.
;; Follow teeup's theme and font. teeup calls (teeup-apply) on a running
;; daemon after every `teeup theme set` and `teeup install font`.
(require 'subr-x)
(defun teeup-apply ()
(let* ((state (expand-file-name "~/.local/state/teeup/"))
(dark (string= "Dark" (string-trim (shell-command-to-string
"defaults read -g AppleInterfaceStyle 2>/dev/null"))))
(theme (expand-file-name (format "current/theme/%s/emacs.el"
(if dark "dark" "light"))
state))
(font (expand-file-name "current/font" state)))
(when (file-readable-p theme)
(load theme nil t)
(mapc #'disable-theme custom-enabled-themes)
(load-theme teeup-theme-name t))
(when (and (display-graphic-p) (file-readable-p font))
(set-face-attribute 'default nil :family
(string-trim (with-temp-buffer
(insert-file-contents font)
(buffer-string)))))))
(teeup-apply)
The daemon and emacsclient
The LaunchAgent sh.teeup.emacs starts Emacs --fg-daemon at login. launchd restarts the daemon after a crash, but not after you stop it on purpose.
| Command | What it opens |
|---|---|
e <file> | A new Emacs window (emacsclient -c) |
et <file> | A frame in the current terminal (emacsclient -t) |
$EDITOR and $VISUAL | The editor that you select in the wizard. With Emacs, the default is emacsclient -c, and emacsclient -t over SSH. Read Editors. |
If the daemon is not running, emacsclient from the shell starts a new daemon, because the teeup shell sets an empty ALTERNATE_EDITOR.
The daemon keeps the configuration that it reads when it starts. After you change the flavor or edit your configuration files, restart the daemon:
launchctl kickstart -k gui/$(id -u)/sh.teeup.emacs
teeup configure emacs also shows this line.
Changing the flavor
Set the answer, then configure Emacs again:
teeup config set TEEUP_EMACS_FLAVOR doom
teeup configure emacs
launchctl kickstart -k gui/$(id -u)/sh.teeup.emacs
teeup update also applies a changed flavor, because it configures the daily tier again. If your machine file pins TEEUP_EMACS_FLAVOR, teeup config set warns you that the pinned value has priority. Change the value in the machine file instead (see Answers and machines).
Doom’s command line
If you use the doom flavor, the Doom CLI is on your PATH, because the teeup shell adds ~/.config/emacs/bin. After you edit ~/.config/doom, run:
doom sync
doom doctor and doom upgrade work in the same way. teeup runs doom install only one time, when ~/.config/doom/init.el does not exist. teeup disables the default Doom template theme so that the teeup theme applies, but your own doom-theme setting overrides it.
Removing Emacs
teeup remove emacs unloads the LaunchAgent of the daemon and uninstalls the cask. teeup does not delete your configuration in ~/.config/emacs, ~/.config/doom, or ~/.emacs.d. If Emacs does not start or the wrong build runs, see Doctor and troubleshooting.
Other editors
If Emacs is installed and you do not select a different editor, the shell and git use Emacs (read Editors). Four more editors are available. They are all lazy, so teeup installs each one the first time you run it.
| Editor | Tier | How to get it | Capability |
|---|---|---|---|
| Zed | lazy | Type zed, teeup launch Zed, or teeup install zed | zed |
| Neovim | lazy | Type nvim, or teeup install neovim | neovim |
| VS Code | lazy | Type code, teeup launch Visual Studio Code, or teeup install vscode | vscode |
| Cursor | lazy | Type cursor, teeup launch Cursor, or teeup install cursor | cursor |
Zed, VS Code and Cursor are Homebrew casks. On a MacPorts machine, teeup cannot install them, so it shows the download page of the vendor.
Zed
teeup does not supply a settings.json file for Zed. Instead, it edits the ~/.config/zed/settings.json file that Zed uses, and changes only the keys for the theme and the font. The edit removes comments inside the settings object, so if the file has these comments, teeup makes a copy of it first. teeup never writes a settings file that is a symlink.
VS Code
VS Code works in the same way. teeup sets the theme, the font and the theme-extension keys in ~/Library/Application Support/Code/User/settings.json, and installs the theme extension with the code command that the cask supplies.
Neovim
The first installation copies the LazyVim starter layout into ~/.config/nvim: init.lua, stylua.toml, and the files in lua/config and lua/plugins. teeup does not change these files after the first copy. The teeup layer, which follows the teeup theme, stays in the checkout.
Neovim downloads the plugins on the first start. Run nvim, and then :LazyHealth inside it. LazyVim needs Neovim 0.11.2 or a newer version, and teeup warns you when the nvim on your PATH is older.
The teeup shell layer adds one shortcut for Neovim:
| Command | What it does |
|---|---|
n | Open Neovim on the current directory |
n <file> | Open Neovim on a file |
If you have an init.vim file next to the new init.lua file, Neovim ignores init.vim, and teeup tells you this. Move the configuration that you need into lua/config/options.lua.
Cursor
Cursor needs macOS 12 or a newer version. teeup installs only the cask, and does not change the settings or the theme of Cursor. To open it, run teeup launch Cursor, or run cursor in a project directory.
Theme and font
teeup theme set and teeup install font apply to Zed, VS Code and Neovim when they are installed, and tell a running copy to apply the change. teeup does not apply a theme to Cursor. The teeup command shows both commands.
AI tools
teeup has five AI coding tools.
./bootstrap does not install them, because each one is a lazy capability: teeup installs a tool the first time you run its command.
| Command | Tool | Capability | Installed through mise as |
|---|---|---|---|
claude | Claude Code | ai-claude | claude |
codex | Codex | ai-codex | codex |
gemini | Gemini CLI | ai-gemini | gemini-cli, plus node |
copilot | GitHub Copilot CLI | ai-copilot | copilot |
opencode | OpenCode | ai-opencode | opencode |
teeup install ai installs all five as an explicit bundle:
teeup install ai
The menu shows the same choices under Install > AI.
What happens on the first call
This example shows what happens when you run claude for the first time on a Mac:
- The lazy shim shows the prompt “claude is provided by capability ai-claude. Install now?”. Type yes.
- The
ai-claudecapability writes a small wrapper script,~/.local/bin/claude, but does not download the tool yet. - The wrapper script runs and does not find Claude Code, so it shows
Installing Claude Code through mise (first run, can take a minute).... - The wrapper script installs Claude Code with mise.
- The wrapper script runs
claudewith the arguments that you typed.
Read Tiers for how shims work.
After the first call, your shell finds ~/.local/bin/claude first on your PATH, and the wrapper script runs the tool through mise x.
teeup install ai-claude does steps 1 and 2 without the prompt, but the download still waits for the first call of the command.
The log
teeup records every first-run download in ~/.local/state/teeup/logs/lazy.log, with a timestamp and whether the download finished.
If a download stops early, run the command again to start it again.
Updates
The tools are in your global mise configuration file, ~/.config/mise/config.toml, so teeup update upgrades them with all other tools that mise manages.
Read Updates for more information.
Removing a tool
teeup remove ai-codex
teeup remove ai # all five
When you remove a tool, teeup deletes the wrapper script that it wrote and removes the tool from the global mise configuration.
When you remove ai-gemini, teeup removes gemini-cli but leaves Node in the mise configuration.
If teeup did not write ~/.local/bin/<command> (for example, the native launcher of Claude Code), teeup does not change it and shows a warning.
If you installed the ai bundle, the bundle requires the five tools, so teeup remove ai-codex stops with the message “ai-codex is required by: ai”.
To remove all tools, run teeup remove ai.
The shim stays after a removal, so if you run the command later, it offers to install the tool again.
Ollama and Herdr
The menu has two other AI capabilities: Ollama runs models on your local system, and Herdr is a terminal agent multiplexer. Read Apps for information about them.
Shell tools
zsh, without a framework
teeup sets /bin/zsh as your login shell and configures it with plain scripts. The layers load in this order:
| File | Owner | What it does |
|---|---|---|
~/.zshenv, ~/.zprofile, ~/.zshrc | You | teeup copies these files one time. They load the teeup layer from the checkout. |
capabilities/zsh/default/ | teeup | This layer configures PATH, the editor, history, completion, aliases, functions, and tools. |
~/.config/zsh/local.zsh | You | This file loads last, so its settings override other settings. Put your aliases, exports, and PATH entries here. |
The layer adds zsh-autosuggestions, zsh-syntax-highlighting, and zsh-completions. It keeps 50,000 lines of shared history and starts mise, Starship, zoxide, and fzf. Starship reads ~/.config/starship.toml, which teeup copies one time (read Dotfiles).
Editors
The teeup shell sets EDITOR, VISUAL, and SUDO_EDITOR to the same editor. Tools such as teeup config edit, crontab -e, and git commit open that editor. Two answers select it:
| Answer | Used | Examples |
|---|---|---|
TEEUP_EDITOR | In a local session | emacsclient -c, zed --wait, nvim |
TEEUP_TERMINAL_EDITOR | Over SSH, and in a local session when TEEUP_EDITOR has no value | emacsclient -t, nvim, vim |
The wizard asks for both. To change one, run teeup config set TEEUP_EDITOR zed --wait, and then open a new terminal. If the first word is not a command on PATH, teeup saves the value and shows a warning.
If an answer names an editor that is not installed, the shell does not use that answer. If neither answer can be used, the shell uses emacsclient -t when it finds emacsclient, then nvim, then vim. An EDITOR or VISUAL value from outside teeup stays as it is. To use a different editor in one shell, set EDITOR in ~/.config/zsh/local.zsh.
teeup does not set core.editor for git, so git uses the same editor. To give git a different editor, set core.editor in ~/.config/git/local.
Commands teeup replaces
teeup replaces ls and cd with aliases and a function. The Aliases section shows other shortcuts.
ls
eza replaces ls.
lsandllruneza -lh --group-directories-first --icons=auto.laandlsashow hidden files.ltrunseza --tree --level=2 --long --icons --gitto show a directory tree.
The file and folder icons need a Nerd Font in the terminal. WezTerm includes one, but you must configure Terminal.app manually to use one (read Terminal).
If the system does not have eza, ll runs ls -lah and la runs ls -lAh.
cd
zd, a function that wraps zoxide, replaces cd.
If you give a real directory path, cd works like the standard command, and any other input starts a zoxide jump. zoxide records the directories that you go into with cd. For example, cd proj jumps to the highest-ranked directory that matches “proj” after you visit that directory.
You can select a directory interactively:
ziopens an interactive picker withfzf.
If the system does not have zoxide, cd runs the standard command.
How to use the original commands
You can ignore aliases or functions to use the original commands:
command lsignores the alias and runs the external command.builtin cdignores the function and runs the shell builtin.\lstemporarily ignores the alias.
Aliases
teeup defines aliases in ~/.local/share/teeup/capabilities/zsh/default/aliases, and replaces them when you run teeup update. It defines an alias only if the tool for that alias is installed. Oh My Zsh plugins=(...) lines have no effect with teeup, but teeup already loads zsh-autosuggestions and zsh-syntax-highlighting.
Type alias name (for example, alias grv) to view the command of an alias. To change or remove an alias, edit ~/.config/zsh/local.zsh, which loads after the teeup aliases. In that file, use unalias name to remove an alias, or define a new alias to override it.
| Alias | Runs | Needs |
|---|---|---|
| Listing | ||
ls, ll | eza -lh --group-directories-first --icons=auto (runs ls -lah if the system does not have eza) | eza |
la, lsa | eza -lha --group-directories-first --icons=auto (runs ls -lAh if the system does not have eza) | eza |
lt | eza --tree --level=2 --long --icons --git | eza |
| Navigation | ||
.., cd.. | cd .. | |
... | cd ../.. | |
.... | cd ../../.. | |
cd | zd | zoxide |
| git | ||
g | git | git |
gs | git status | git |
ga | git add | git |
gcm | git commit -m | git |
gcam | git commit -a -m | git |
gco | git checkout | git |
gd | git diff | git |
gl | git log --oneline --graph --decorate (unlike OMZ where gl runs git pull) | git |
gp | git push | git |
gpl | git pull | git |
grv | git remote -v | git |
lg | lazygit | lazygit |
| Editors | ||
e | emacsclient -c | emacsclient |
et | emacsclient -t | emacsclient |
| macOS | ||
showhidden | defaults write com.apple.finder AppleShowAllFiles YES; killall Finder | macOS |
hidehidden | defaults write com.apple.finder AppleShowAllFiles NO; killall Finder | macOS |
| Other | ||
c, cls | clear | |
pse | ps -ef | |
colima-start | colima start | colima |
colima-stop | colima stop | colima |
Tools installed alongside
teeup installs these tools in addition to the built-in commands, and they do not replace existing commands.
rg pattern: Search file contents with ripgrep.fd name: Find files by name.bat file: Read files with syntax highlighting.manpages also open in bat.- fzf: Fuzzy finder. Press Ctrl+R to search the history, Ctrl+T to select a file, or Alt+C to change the directory. These key bindings come from fzf, and teeup only loads them.
delta: The pager forgit diff,git log, andgit show.lazygit: Terminal user interface for git.btop: Process monitor and resource monitor.tldr tar: Read short help pages that show examples first.jqandyq: Read and edit JSON files and YAML files.dust: View the disk usage by directory.
The cli-tools capability also installs tree, wget, curl, and gnupg, and the git capability installs delta and lazygit.
Lazygit
Lazygit is a terminal user interface for git. Type lg or lazygit in a git repository to open Lazygit.
teeup installs Lazygit, but does not supply a custom configuration or theme for it.
Basic Keybindings
These are the primary keys to start:
?: Open the keybindings menu.handl(or left arrow and right arrow): Switch panels.jandk(or up arrow and down arrow): Move in a panel.space: Toggle the file inclusion (stage or unstage).c: Commit (this opens a prompt for the commit message).p: Pull.P: Push.qorEsc: Quit or cancel.
For the full list of shortcuts and documentation, read the Lazygit documentation.
tmux
teeup installs tmux when you type tmux, and copies its configuration file, ~/.config/tmux/tmux.conf, one time. The configuration sets the prefix to Ctrl+A, enables the mouse, and binds | and - to split the window. If you already have a ~/.tmux.conf file, teeup does not change it.
Runtimes
teeup controls language runtimes with mise. mise is in the core tier, but the languages are not. You install the languages that you use, with one command for each language.
teeup install dev-env python
| Language | Command | What it installs |
|---|---|---|
| Python | teeup install dev-env python | The latest Python, and uv |
| Node | teeup install dev-env node | The latest Node |
| Java | teeup install dev-env java | The latest Java |
| Ruby | teeup install dev-env ruby | The latest Ruby |
| Rust | teeup install dev-env rust | The latest Rust, through mise’s rust backend, which uses rustup |
| Go | teeup install dev-env go | The latest Go |
teeup status lists the installed languages below “Dev envs”, and the menu shows them below “Install”, then “Language runtimes”.
Homebrew or mise?
teeup uses two sources. The tools that teeup itself needs come from Homebrew or MacPorts. The tools that you use come from mise, at the versions of the teeup release.
| Source | Tools |
|---|---|
| Homebrew or MacPorts | mise, git, the GitHub CLI, gum, jq, zsh and its plugins, curl, wget, tree, GnuPG, btop, Colima and Docker, and every app |
| mise, at the versions of the release | ripgrep, fd, fzf, bat, eza, zoxide, yq, tealdeer (tldr), dust, delta, git-lfs, lazygit, Starship, Neovim, tmux, Herdr, and the Ollama command |
| mise, at the versions that you choose | Language runtimes, the AI command-line tools, and every tool that you add with mise use -g |
The file share/teeup/tools.lock in the teeup checkout records the versions of the second row. A new teeup release can change these versions. teeup installs each tool with mise and links it in two steps. The link in ~/.local/bin points to a link in ~/.local/state/teeup/tools, and that link points to the tool. A command then starts the tool directly, without mise, so it starts as fast as a Homebrew copy.
teeup records the same versions in ~/.config/mise/conf.d/teeup.toml, so mise prune keeps them. mise reads this file and your ~/.config/mise/config.toml.
teeup edits your config.toml only when it moves a choice that mise wrote into teeup’s file. See the mise configuration page.
Your own mise use -g <tool>@<version> choice wins over the release. Run teeup update or teeup configure <capability> to point teeup’s link at it.
teeup keeps the release version installed. Run mise unuse -g <tool>, then run teeup update to make the link use it again.
teeup doctor reports a linked choice as healthy. It also shows the command that returns the link to the release version.
Language runtimes come from mise because projects need different versions. Each project specifies its versions in mise.toml, and mise activate changes between them when you change directories. mise downloads each AI tool the first time that you run it.
A Mac with MacPorts gets the same tools from mise as a Mac with Homebrew. MacPorts has no casks, so with MacPorts, WezTerm and Emacs come from ports and teeup tells you to download the other apps yourself.
teeup update installs a new pinned version when a release changes it. It upgrades the Homebrew or MacPorts packages only when it moves teeup to a new commit. It also runs mise upgrade for the tools in your global mise configuration. See Updates.
Most capabilities accept a copy of their command that you installed a different way, such as your own jq, if its version command runs. A broken command or a stale shim on PATH does not replace the package. A file of your own at ~/.local/bin/rg, or at the path of another pinned tool, stays, and teeup does not link that tool. teeup owns a link in ~/.local/bin only when it points into ~/.local/state/teeup/tools. If you link a tool to a mise install yourself, your link stays, and teeup remove does not uninstall that version.
The GitHub CLI is an exception: teeup always installs its own gh, because git uses gh to sign in. teeup doctor github warns when a different gh comes first on PATH.
Where the versions live
Each runtime goes into your global mise configuration, ~/.config/mise/config.toml. teeup runs mise from / for this, so a mise.toml file in the current project cannot redirect the installation. If you already specified a version there, teeup keeps it and does not replace it with the latest version.
Project versions operate the usual mise way, with a mise.toml file in the project that you write by hand or with mise use. The teeup shell runs mise activate zsh, so the correct version is on PATH when you move between directories. teeup update runs mise upgrade for the global tools.
The new runtime is on PATH at the next prompt in the shell where you ran the command. Other shells find the new runtime after you open a new terminal.
No shims for runtimes
Lazy capabilities get shims (see Tiers), but runtimes do not. macOS already has commands such as python3, ruby, and java, and a teeup shim must never replace them. When you type python, teeup does not ask you to install anything. Run teeup install dev-env python to install Python.
Rust
mise installs Rust through rustup, which puts toolchains in ~/.rustup and ~/.cargo. The teeup shell puts ~/.cargo/bin on PATH, so the shell finds the packages that you install with cargo install. ~/.cargo/bin comes after ~/.local/bin on PATH, so a cargo binary never replaces a teeup wrapper.
Java and javav
The javav command changes Java for the current shell only.
| Command | What it does |
|---|---|
javav 21 | Install Corretto 21 if necessary and use it in this shell |
javav zulu-17 | The same, for a different vendor and version |
javav | Show JAVA_HOME, the java on PATH, and its version |
A version number without a vendor name means Corretto. To use a different vendor as the default, set JAVAV_VENDOR in ~/.config/zsh/local.zsh, for example export JAVAV_VENDOR=zulu.
Go
The teeup shell sets GOPATH to ~/Development/GoWorkspace if you did not set it yourself. It adds the bin directory of the workspace to PATH when that directory exists.
Containers
teeup runs containers with Colima and the Docker command-line client. colima is a lazy capability.
| Command | What it does |
|---|---|
docker ... | The first time, teeup asks you to install Colima, then runs your command. |
teeup install colima | Installs Colima immediately. |
colima-start, colima-stop | Starts or stops the virtual machine. These aliases are available after you install Colima. |
colima status | Shows the status of the virtual machine. |
teeup remove colima | Stops the virtual machine, then uninstalls Colima, Docker, and Compose. |
What gets installed
| Package | Homebrew | MacPorts |
|---|---|---|
| Colima | colima | colima |
| Docker CLI | docker | docker |
| Compose | docker-compose | docker-compose-plugin |
On Homebrew, teeup links the Compose plugin into ~/.docker/cli-plugins, so docker compose runs as a subcommand. If you set DOCKER_CONFIG, teeup puts the link under that directory instead.
The first run
When teeup configures Colima, it starts the virtual machine. The first docker ps takes time, because it installs the packages, starts the virtual machine, and lists the containers. Colima sets itself as the default Docker context.
docker ps # installs, starts Colima, then lists containers
docker run --rm hello-world
After a restart
The virtual machine does not start at login, so after a restart, start it before you use Docker:
colima start
If the virtual machine does not run, teeup configure colima starts it. teeup update does not configure lazy capabilities, and does not start the virtual machine.
Removing it
teeup remove colima stops an active virtual machine first, and if colima stop fails, teeup stops. On Homebrew, it also removes the Compose plugin link that it made.
Do not uninstall Colima while the virtual machine runs, because the machine continues to run and Colima cannot stop it. If the removal stops, stop the virtual machine manually. Then run teeup remove colima again.
Apps
In addition to the terminal and the editors, teeup installs other apps.
| App | Capability | Tier | Notes |
|---|---|---|---|
| Firefox Developer Edition | firefox-developer-edition | lazy | This is the daily browser. |
| Obsidian | obsidian | lazy | An app for notes. It needs macOS 12 or newer. |
| Raycast | raycast | lazy | A launcher for apps and commands. On macOS 26 and newer it needs Apple Silicon. teeup does not change the Spotlight key. |
| Google Chrome | chrome | lazy | Needs macOS 13 or newer. |
| AeroSpace | aerospace | core | A tiling window manager. It needs macOS 13 or newer. |
| Ollama | ollama | lazy | Runs local language models. teeup does not download a model for you. |
| Herdr | herdr | lazy | An agent multiplexer that runs in your terminal. |
The browsers, Obsidian, and Raycast are Homebrew casks. If the machine uses MacPorts, teeup marks these apps as “not applicable” and shows the download page of the vendor.
teeup launch
teeup launch opens an app. If the app is missing, teeup first installs the capability that provides it, and then opens it. If the app already runs, macOS brings it to the front.
teeup launch Google Chrome # no quotes needed
teeup launch chrome # the capability name works too
teeup launch Obsidian
teeup ignores the case of an app name, but you must type a capability name exactly as teeup list shows it. The Launch section of teeup menu shows every installed app.
AeroSpace
AeroSpace tiles your windows in the i3 style. Read the AeroSpace page for its keys and configuration.
Ollama
teeup installs the Ollama app as the ollama-app cask. The ollama command comes from mise, at the version that the teeup release pins. The Ollama app updates itself, so ollama --version can show a different server version. If the cask cannot install, for example on a Mac older than macOS 14, or with MacPorts, you still have the ollama command. Start the server yourself with ollama serve. When you need a model, download one:
ollama pull llama3.2
Herdr
When you type herdr, teeup offers to install Herdr. Start Herdr in a project directory. To detach Herdr, type ctrl+b q. When you run herdr again, Herdr reattaches.
AeroSpace
AeroSpace controls workspaces and puts your windows in tile or accordion layouts, in the i3 style.
AeroSpace needs Accessibility access the first time it runs:
- Open System Settings > Privacy & Security > Accessibility.
- Enable AeroSpace.
- Run
open -a AeroSpace.
After that, AeroSpace starts automatically when you sign in.
Keys
The configuration file has two modes: the main mode and the service mode. The main keys use Option (alt), and some shortcuts also have Emacs-style aliases.
Main mode: Focus
| Keys | Action |
|---|---|
alt-h, alt-j, alt-k, alt-l | Focus the left, down, up, or right window |
alt-ctrl-b, alt-ctrl-n, alt-ctrl-p, alt-ctrl-f | Focus the left, down, up, or right window (Emacs style) |
Main mode: Move
| Keys | Action |
|---|---|
alt-shift-h, alt-shift-j, alt-shift-k, alt-shift-l | Move the window left, down, up, or right |
alt-ctrl-shift-b, alt-ctrl-shift-n, alt-ctrl-shift-p, alt-ctrl-shift-f | Move the window left, down, up, or right (Emacs style) |
Main mode: Workspaces
| Keys | Action |
|---|---|
alt-1 to alt-9 | Go to workspace 1 to 9 |
alt-shift-1 to alt-shift-9 | Move the window to workspace 1 to 9 |
alt-tab | Return to the previous workspace |
alt-shift-tab | Move the workspace to the next monitor |
Main mode: Layouts
| Keys | Action |
|---|---|
alt-slash | Use the tiled layout |
alt-comma | Use the accordion layout |
alt-backslash | Change the window to floating or tiled |
alt-f | Use the full screen |
alt-enter | Open a new WezTerm window |
Main mode: Resize
| Keys | Action |
|---|---|
alt-minus | Make the window smaller |
alt-equal | Make the window larger |
Main mode: Service mode
| Keys | Action |
|---|---|
alt-shift-semicolon | Enter the service mode |
Service mode
Each service mode key does one task, and then AeroSpace returns to the main mode.
| Keys | Action |
|---|---|
esc | Reload the configuration |
r | Flatten the workspace tree |
f | Change the layout to floating or tiled |
backspace | Close all windows except the current window |
alt-shift-h, alt-shift-j, alt-shift-k, alt-shift-l | Join the left, down, up, or right window |
alt-ctrl-shift-b, alt-ctrl-shift-n, alt-ctrl-shift-p, alt-ctrl-shift-f | Join the left, down, up, or right window (Emacs style) |
Configuration
Edit ~/.config/aerospace/aerospace.toml. teeup copies this file one time, and after that you can change it. If you have ~/.aerospace.toml, teeup keeps it and does not install its own file, because AeroSpace does not run if it finds two configuration files. To reload the configuration, press esc in the service mode or run aerospace reload-config.
If you have more than one display, you can assign workspaces to specific monitors in the configuration file. For more than the teeup configuration, read AeroSpace’s guide.
Troubleshooting
Run teeup doctor to check that AeroSpace runs and its configuration is correct. Read the doctor page for more information.
Removing it
Run teeup remove aerospace. If you do not want to install AeroSpace, use TEEUP_SKIP=aerospace.
Updates
teeup update keeps the Mac current:
teeup update
DRY_RUN=true teeup update # the same, as a preview that changes nothing
teeup update updates the Mac and configures the installed capabilities, but it does not finish an incomplete bootstrap. To finish one, run ./bootstrap again (see Getting started).
What runs, in order
| Step | What happens |
|---|---|
| 1. Checkout | git fetch downloads the new releases and commits of teeup. Then teeup moves the checkout forward on its channel: to the newest release, or to the newest commit on main. See Release or main. |
| 2. Packages | brew update runs (with MacPorts, port selfupdate). If step 1 moved the checkout to a new commit, brew upgrade (with MacPorts, port upgrade) upgrades only the packages and casks that teeup installed. If the checkout did not move, their versions stay as they are. But if this upgrade failed on the last update, teeup tries it again. teeup does not upgrade other Homebrew packages: use brew upgrade for them. A package that a capability uses belongs to teeup, so teeup upgrades it even if you installed it before teeup. A future version will let you choose (issue #79). |
| 3. mise | mise upgrade runs for every tool in the global mise configuration, which includes the language runtimes and the AI tools. |
| 4. Pinned tools | teeup installs each release version. Its link follows your global mise choice when you have one. teeup does not change a capability in TEEUP_SKIP. See Tool versions. |
| 5. Migrations | teeup runs every migration script that this Mac did not run yet. |
| 6. Configure | The configure script runs again for every installed capability in the core tier, and then in the daily tier. |
| 7. Theme | If step 6 did not render the current theme, teeup renders it again. |
| 8. Hooks | Your post-update hooks run (see Hooks and extending). |
The migrations run after the upgrades, because a migration adjusts a configuration file for a new tool version and must see the newly installed version.
Step 6 applies the changed answers. If you set a new Emacs flavor with teeup config set, teeup update applies it because Emacs is in the daily tier.
What it leaves alone
- Lazy capabilities. Their
configurestep does not run again, because it can start a virtual machine (for example, Colima). Steps 2 and 4 upgrade their packages and their pinned tools. - Capabilities that you did not install on this Mac. The update does not change these capabilities, or the capabilities that your machine file lists in
TEEUP_SKIP. teeup prints a line for each one and continues. - Your files. The
configurestep never overwrites a configuration file that you edited (see Dotfiles).
Tool versions
A teeup release sets the version of each tool that comes from mise. The file share/teeup/tools.lock records these versions. The tools change only when teeup update moves teeup to a release with a different file. If teeup stays on the same release, teeup update installs no new tool versions.
When a release changes a version, step 4 installs the new version and changes the link in ~/.local/state/teeup/tools. The link in ~/.local/bin stays as it is. The old version stays installed. Run mise prune to remove the versions that nothing uses.
Your own mise use -g <tool>@<version> choice wins. Run teeup update or teeup configure <capability> to point teeup’s link at it.
teeup keeps the release version installed. Run mise unuse -g <tool>, then run teeup update to make the link use it again.
teeup doctor reports a linked choice as healthy. It also shows the command that returns the link to the release version.
Homebrew cannot keep a formula at a fixed version. Thus teeup upgrades the packages that it installed only when the checkout moves to a new commit. On the release channel, this is a new release. On main, this is a new commit. If that upgrade fails, the next update tries it again, also when the checkout did not move.
When something goes wrong
Two problems stop the update at different points:
| Problem | When | What teeup says |
|---|---|---|
| The checkout has uncommitted changes | Before step 1, so no step ran yet. | “… has uncommitted changes, so teeup update will not pull.” Commit, stash, or discard the changes, and then run the command again. |
| A migration fails | At step 5, after the pull, the package upgrades, mise upgrade, and the pinned tools ran. | “Migration … failed, so the migrations after it did not run.” The configure, theme, and hook steps do not run. Fix the cause, and then run the command again. |
Every other problem is a warning, and the run continues. For example, the computer is offline, the checkout cannot move forward, a formula fails to build, or a configure step fails. At the end, teeup prints “teeup is up to date.” or “teeup update finished, with the problems above.”. If there were problems, the exit status is not zero.
Release or main
teeup update follows releases by default. It moves the checkout to the newest release tag on main. teeup never moves the checkout back to an older commit. If the checkout is ahead of the newest release, it stays where it is until there is a newer release.
To follow main, run this command:
teeup update --main
The code on main is newer than the newest release, and it can be unstable. teeup saves the choice as TEEUP_UPDATE_CHANNEL in the answers file, so the next teeup update follows main too.
If a release is withdrawn, a Mac that already has it stays on it until a newer release exists. A Mac that does not have it never moves to it.
To follow releases again, run teeup update --release. This does not move the checkout back. The checkout stays on its commit on main until there is a newer release.
Before teeup 0.3.0-beta, every installation followed main. If TEEUP_UPDATE_CHANNEL has no value and the checkout is on the branch main, teeup update shows this notice: “teeup now follows releases. To keep following main, run: teeup update –main”.
After you select a channel with --main or --release, the notice stops. If your machine file sets TEEUP_UPDATE_CHANNEL, the machine file wins, and teeup shows a warning. You cannot use --main or --release with a capability name, because teeup update <capability> does not move the checkout.
One capability
teeup update wezterm
If you give a capability name, teeup update upgrades the packages and casks for that capability, or runs its own update script if it has one. Then it runs the configure script and your post-update hooks, which get the name of the capability as the first argument. It does not pull the checkout or run the migrations.
The capability must be installed, and if it is not, teeup tells you to run teeup install.
Migrations
A migration is a script in the migrations/ directory, with the name migrations/<epoch>.sh. Each migration runs one time per Mac. The first ./bootstrap run on a Mac marks all existing migrations as done but does not run them. The new machine already has the state that they produce.
If a migration provides a changed configuration file, it replaces only the copies that you did not edit, and does not change an edited copy.
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.
| File | Written by | Holds |
|---|---|---|
~/.config/teeup/answers | The wizard, teeup config and teeup update --main or --release | Your name and email, the theme, the daily set, the Emacs flavor, the editors, the package manager, the update channel |
~/.config/teeup/machines/<hostname>.conf | You | Settings 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.
| Key | Meaning | Applied by |
|---|---|---|
TEEUP_NAME, TEEUP_EMAIL | Your git identity | teeup configure git |
TEEUP_THEME | The theme | teeup theme set <name> |
TEEUP_DAILY | yes or no: installs the daily set | ./bootstrap |
TEEUP_EMACS_FLAVOR | starter, doom, spacemacs or none | teeup configure emacs and teeup update |
TEEUP_EDITOR | The editor for a local session, for example emacsclient -c or zed --wait. See Editors. | A new terminal |
TEEUP_TERMINAL_EDITOR | The editor over SSH, and when TEEUP_EDITOR has no value, for example emacsclient -t or nvim | A new terminal |
TEEUP_PACKAGE_MANAGER | homebrew or macports | ./bootstrap the first time |
TEEUP_UPDATE_CHANNEL | release or main: what teeup update follows. No value means release. See Release or main. | teeup update |
teeup config
| Command | What it does |
|---|---|
teeup config get | Shows the file paths and every answer, with [pinned by <host>.conf] next to each answer that the machine file overrides. |
teeup config get TEEUP_THEME | Shows the value that teeup reads, with the pin included. |
teeup config set TEEUP_NAME Ada Lovelace | Changes one answer. The rest of the line is the value, so you do not need quotes. |
teeup config edit | Opens 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_EMAILand the otherTEEUP_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:
| Key | Example | Effect |
|---|---|---|
TEEUP_SKIP | TEEUP_SKIP="aerospace" | The capabilities that this Mac never installs, separated by spaces. |
TEEUP_PACKAGE_MANAGER | TEEUP_PACKAGE_MANAGER="macports" | Pins the package manager. |
TEEUP_THEME | TEEUP_THEME="catppuccin" | Pins the theme. |
TEEUP_EMACS_FLAVOR | TEEUP_EMACS_FLAVOR="doom" | Pins the Emacs flavor. |
TEEUP_EDITOR, TEEUP_TERMINAL_EDITOR | TEEUP_EDITOR="zed --wait" | Pins the editors. |
TEEUP_WORK_EMAIL and related keys | see Identity | A second, work SSH key. |
TEEUP_PERSONAL_SSH_HOST and TEEUP_PERSONAL_GH_ACCOUNT | see Identity | The 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:
~/.config/teeup/machines/<hostname>.confis your personal file, andteeup updatedoes not change it.machines/<hostname>.confin 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.
Dotfiles
teeup splits the tool configuration into user files and system files, and updates modify only the system files.
| Kind | Where | Owner |
|---|---|---|
| Copied once | ~/.config/<tool>/..., and ~/.zshrc, ~/.zshenv, ~/.zprofile | You, after teeup copies them |
| Local override | A local.* file next to the copied files | You, always |
| Generated | A small number of files that teeup rewrites, marked “Your edits here are overwritten” | teeup |
| Layer | capabilities/<name>/default/ in the checkout | teeup, and teeup update upgrades them |
Most copied files load the teeup layer from the checkout and then your local file, so your settings override the teeup settings.
The files teeup copies
| Capability | Files |
|---|---|
zsh | ~/.zshenv, ~/.zprofile, ~/.zshrc, ~/.config/zsh/local.zsh |
git | ~/.config/git/config |
ssh | ~/.ssh/config, only if you do not have one |
starship | ~/.config/starship.toml |
wezterm | ~/.config/wezterm/wezterm.lua, ~/.config/wezterm/local.lua |
emacs | ~/.config/emacs/init.el, ~/.config/emacs/local.el, for the starter flavor |
neovim | ~/.config/nvim/init.lua, stylua.toml, and the files in the lua/ directory |
cli-tools | ~/.config/bat/config |
mise | ~/.config/mise/config.toml |
tmux | ~/.config/tmux/tmux.conf, if you do not have a ~/.tmux.conf |
aerospace | ~/.config/aerospace/aerospace.toml, if you do not have a ~/.aerospace.toml |
The copy-once rule
When teeup installs one of these files, it records a checksum of the file in ~/.local/state/teeup/stock/. Every later configure compares the file against that record:
| The file is | teeup does | and says |
|---|---|---|
| Missing | Copies it and records the checksum | “Installed …” |
| Not changed after teeup wrote it | Nothing | “Already installed: …” |
| A file that you changed | Nothing | “Keeping your edited … (run teeup reset to restore the shipped file)” |
| Not from teeup, for example a file from a different dotfiles tool | Renames the file, installs the teeup file, and prints the lines that are different | “Installed … (your previous file is at …)” |
When teeup renames a file, it adds .teeup_backup_<timestamp> to the name and keeps the file in the same directory. teeup does not delete the file. teeup treats a symlink as a file that is not from teeup, and does not write through it to its target.
If a teeup update includes a new default, a migration replaces unchanged files but not your edited files.
Local files
Write your settings in the local.* files. teeup installs them with all lines as comments, and teeup reset does not overwrite them.
| File | Loaded by |
|---|---|
~/.config/zsh/local.zsh | ~/.zshrc, last |
~/.config/wezterm/local.lua | ~/.config/wezterm/wezterm.lua |
~/.config/emacs/local.el | ~/.config/emacs/init.el, last |
~/.config/git/local | ~/.config/git/config, last. teeup does not create this file, so you must create it. |
teeup reset
teeup reset starship
DRY_RUN=true teeup reset zsh
teeup reset <capability> restores the copied files of a capability to the version that teeup ships. For each file, the command does these steps:
- It makes a backup file named
<name>.teeup_backup_<timestamp>in the same directory. - It writes the shipped version, adapted to this Mac if the capability adapts the file (the zsh home files, the git config).
- It prints the changes.
- If the previous file was the shipped version, it deletes the backup file.
Then the command applies the current theme and font again, so a reset starship.toml file has your palette. It keeps the local.* files. It does not change a file that is a symlink or is not writable, and it does not overwrite a file if the backup fails.
You can reset only a capability that has copied files. For other capabilities, teeup prints that the capability “ships no config files to reset”.
Identity
teeup configures git, SSH, and GitHub with your name and personal email. Each machine has one git identity. You can add a second SSH key for work in the machine file.
git
| File | Owner | Holds |
|---|---|---|
~/.config/git/identity | teeup | user.name, user.email and the signing key, from TEEUP_NAME and TEEUP_EMAIL. |
~/.config/git/teeup-generated | teeup | The pager, and whether git signs commits, from the software that is installed. |
~/.config/git/config | You | Other settings: defaults, aliases, colours. It includes the two files above. |
~/.config/git/local | You | Optional. git includes this file last, so its settings have priority over all of the files above. |
teeup writes the two generated files again each time it configures git, so change the answers and do not edit the files. To change your name or email, run:
teeup config set TEEUP_EMAIL ada@example.com
teeup configure git
If a repository needs a different address, run git config user.email ... in that repository. teeup does not change identities by directory.
git signs commits with your SSH key, not with GPG. teeup enables signing when the key exists, and during a first bootstrap the SSH step creates the key and then configures git again. git uses the editor that the shell selects (read Editors). If delta is installed, the pager is delta.
SSH
| Item | Detail |
|---|---|
| Key | ~/.ssh/id_ed25519_personal, an ed25519 key with your email as its comment. |
| Passphrase | ssh-keygen asks for a passphrase. It goes into your login Keychain, so you type it one time. |
| Config | ~/.ssh/config, which teeup writes only if the file does not exist. It uses the key for github.com. |
If your ~/.ssh/config file names a key for GitHub, teeup uses that key and does not make a new key or edit your file. If your file does not have a Host block that teeup needs, teeup prints the block for you to add.
teeup does not delete SSH keys. teeup uninstall, also with --identity, only prints the commands to remove a key (read Uninstall). When teeup must replace an unusable key file, it moves the file to <name>.teeup_backup_<timestamp> and does not delete it.
GitHub
The github capability installs the GitHub CLI, gh, from Homebrew or MacPorts, and does not use a gh from mise as a substitute. Then it does these steps in this order:
- teeup signs you in with
gh auth login --web --skip-ssh-key, which opens your browser and does not ask for an SSH key. - teeup asks one time if it can upload your public key. If you agree, teeup uploads the key as an authentication key and as a signing key.
- teeup configures
ghto use SSH for git.
The default answer for the upload question is yes, and teeup saves the answer as TEEUP_GITHUB_UPLOAD_PERSONAL or TEEUP_GITHUB_UPLOAD_WORK. A saved no skips both uploads and, for the personal identity, also keeps commit signing off. To change the personal choice later, run:
teeup config set TEEUP_GITHUB_UPLOAD_PERSONAL yes && teeup configure github
Use TEEUP_GITHUB_UPLOAD_WORK for the work identity. When teeup runs without a terminal and no answer is saved, teeup uploads the keys, as earlier versions did.
If the configuration cannot finish (for example, because you closed the browser), teeup tells you, and you can run teeup configure github again. teeup does not upload a key that is already on your account.
If teeup doctor github reports that the mise gh is before the package-manager gh on PATH, run this command. It removes the global mise selection and installation, and rebuilds the mise shims:
mise unuse -g gh && mise uninstall gh --all && mise reshim
teeup prints this command but does not change your mise configuration.
A work identity
If you also use a Mac for work, it can have a second SSH key. Set these keys in the machine file, ~/.config/teeup/machines/<hostname>.conf. Read Answers and machines for more information.
| Key | Meaning |
|---|---|
TEEUP_WORK_EMAIL | Enables the work identity. This key is required for the other two keys. |
TEEUP_WORK_GH_HOST | The GitHub host for work, for example a GitHub Enterprise server. The default value is github.com. |
TEEUP_WORK_GH_ACCOUNT | The work GitHub login, if work is a second account on the same host as personal. |
TEEUP_PERSONAL_GH_ACCOUNT | The personal GitHub login, if both accounts are on the same host. |
If you set TEEUP_WORK_EMAIL, teeup creates ~/.ssh/id_ed25519_work and uploads it to the work host. It also adds the work SSH host alias to a new ~/.ssh/config. Clone work repositories with the alias, for example git@github.com-work:org/repo.git.
When work and personal share github.com, gh can act as only one account per host. For the upload, teeup switches to TEEUP_WORK_GH_ACCOUNT (and to TEEUP_PERSONAL_GH_ACCOUNT if you set it), and then switches back. You must sign in to both accounts first, with gh auth login --skip-ssh-key. If the correct account is not signed in, teeup does not upload the key, rather than put it on your other account.
git still has one identity: the work key changes the key that SSH offers, not the email on your commits.
SSH host aliases
By default, teeup uses github.com as the SSH host alias for the personal identity, and github.com-work for the work identity. To change these aliases, set them in your machine file (~/.config/teeup/machines/<hostname>.conf):
| Key | Meaning |
|---|---|
TEEUP_PERSONAL_SSH_HOST | The SSH host alias for the personal identity. The default value is github.com. This alias applies to any Mac. |
TEEUP_WORK_SSH_HOST | The SSH host alias for the work identity. The default value is github.com-work. |
Company certificates
On a network that inspects traffic, such as a company office or a VPN, a proxy signs every secure connection with a private certificate. Your administrator installs that certificate in the macOS System keychain, so browsers trust it.
Command-line tools such as git, Homebrew’s curl, mise, and Python’s requests do not trust the certificate, because they read their own lists of trusted certificates. They fail with errors such as “self signed certificate in certificate chain”.
If the Mac has certificates that an administrator trusts as roots, teeup makes a PEM certificate bundle from Apple’s public roots and these certificates. It does not use a certificate marked Never Trust. Then it configures your shell and its own commands to use the bundle. On a Mac without company certificates, teeup does nothing.
How it works
You do not need to do anything. teeup makes the bundle during ./bootstrap, and makes it again at the start of every teeup update, before it connects to the network. teeup puts the bundle in ~/.local/state/teeup/ca-bundle.pem. The bundle works on every network because it has the public roots and the company certificates.
teeup sets these environment variables to configure the tools:
SSL_CERT_FILEGIT_SSL_CAINFOCURL_CA_BUNDLEREQUESTS_CA_BUNDLENODE_EXTRA_CA_CERTSHOMEBREW_CURLRC
Overriding the bundle
teeup sets a variable only if it does not have a value. To use a different file for one tool, set its variable in ~/.config/zsh/local.zsh, which loads after the teeup settings:
export GIT_SSL_CAINFO="$HOME/certs/other.pem"
To remove the bundle entirely, run teeup remove ca-bundle.
Installing teeup on such a network
Before teeup makes its bundle, curl does not trust the company certificate, so the one-line installer cannot download. Do these steps:
-
Make sure that the company root certificate is in the System keychain and is trusted. Usually your IT team installs it. If it is not there, get the certificate file from your IT team, and trust it:
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/Downloads/company-root.cerReplace
~/Downloads/company-root.cerwith the path of your certificate file. -
Make a temporary certificate file that has the Apple public roots and the company root certificate. Replace
Company Rootwith the name of the company root certificate, as Keychain Access shows it. Then give the file to curl:security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain > "$TMPDIR/teeup-ca.pem" security find-certificate -c "Company Root" -p /Library/Keychains/System.keychain >> "$TMPDIR/teeup-ca.pem" curl --cacert "$TMPDIR/teeup-ca.pem" -fsSL https://teeup.systemhalted.in/install.sh | bashDo not add all of the System keychain to the file. Applications keep certificates there that nobody chose to trust.
If git clone fails with a certificate error, the installer makes a bundle and clones again. The bundle has the certificates that an administrator trusts in the System keychain. Then ./bootstrap makes the teeup bundle, and teeup works on the company network. If no certificate is trusted, the installer stops and shows the add-trusted-cert command from step 1.
You can also run the installer on a different network, for example a phone hotspot.
Troubleshooting
teeup doctor ca-bundle shows if this Mac needs a bundle, and if the bundle is available and current.
If your company replaces its certificate and git fails again, make the bundle again:
teeup configure ca-bundle
Secrets
API tokens and passwords belong in the macOS Keychain. teeup secret stores them there, and teeup-env exports one to a shell when you need it.
| Command | What it does |
|---|---|
teeup secret set <name> | Asks for the value, does not show it, and stores it. |
teeup secret get <name> | Shows the value. |
teeup secret rm <name> | Deletes the secret. |
teeup-env <name> | Exports the secret to the current shell only. |
teeup-env <name> <VARIABLE> | Does the same, with a variable name that you select. |
teeup secret set openai-api-key
teeup-env openai-api-key # exports OPENAI_API_KEY
teeup-env openai-api-key MY_TOKEN # exports MY_TOKEN
Where they live
Each secret is a generic password in your login Keychain, with the service teeup and the account set to the name of the secret. Keychain Access shows the secrets under that name, and the macOS security command reads them:
security find-generic-password -s teeup -a openai-api-key -w
The secret value never goes through the command line of another process. teeup gives the value to security on standard input, so it does not show in ps output.
Names
The first character of a name is a letter or a digit, and the other characters are letters, digits, dots, underscores, and dashes. teeup secret set does not accept an empty value.
If you do not specify a variable name, teeup-env makes one from the secret name. It changes the name to uppercase letters and changes each character that is not a letter, digit, or underscore to an underscore (_). If the first character is a digit, it adds a leading underscore. For example, my.api-key becomes MY_API_KEY.
Using a secret
teeup-env is a shell function, so it changes only the shell where you run it and the programs that you start in that shell. New terminals do not have the variable, and your shell history never records the secret value.
To use a secret in only one command, read it inline:
GITHUB_TOKEN="$(teeup secret get github-token)" some-command
Previewing
DRY_RUN=true teeup secret set <name> prints the security command, with <value> in place of the secret, but does not run it or ask you for input.
macOS defaults
Two core capabilities change macOS: macos-defaults configures a list of preferences for development, and keyboard changes Caps Lock to Control.
You can undo the changes of each capability with teeup remove.
The preferences
| Area | Setting | Value |
|---|---|---|
| Finder | Show every file extension | on |
| Finder | Show hidden files | on |
| Finder | Path bar | on |
| Finder | Default view | list |
| Finder | Warn when you change an extension | off |
| Dialogs | Save and Print panels | expanded |
| Keyboard | Key repeat rate | fastest (KeyRepeat 2) |
| Keyboard | Delay until repeat | shortest (InitialKeyRepeat 15) |
| Typing | Smart quotes, smart dashes | off |
| Typing | Automatic capitalisation, spelling correction | off |
| Dock | Automatically hide | on |
| Trackpad | Tap to click | on for the built-in trackpad |
| Screenshots | Save location | ~/Screenshots. teeup creates this directory if it is missing |
teeup restarts Finder, the Dock or SystemUIServer only when it changed one of the settings of that application. The two key-repeat settings apply only after you log out and log in again.
If you run teeup configure macos-defaults again, it does not change a value that is already correct, and if no value changes, it restarts nothing.
Putting them back
When teeup writes a preference for the first time, it records the previous value.
teeup remove macos-defaults restores each recorded value, or deletes the setting if it did not exist before, and then restarts Finder, the Dock and SystemUIServer.
The ~/Screenshots directory and its contents stay on your Mac.
If teeup cannot restore a preference, it shows the name of the preference and keeps macos-defaults marked as installed.
You can then correct the cause and run the removal command again.
Because the capability is in the core tier, the next ./bootstrap configures the preferences again.
To keep the preferences off on one Mac, add the capability to TEEUP_SKIP in the machine file (read Answers and machines).
Caps Lock as Control
The keyboard capability changes Caps Lock to Control directly with the macOS hidutil tool, without an extra application or a kernel extension.
| Piece | What it does |
|---|---|
hidutil property --set ... | Applies the configuration immediately |
LaunchAgent sh.teeup.keyboard | Applies the configuration again at every login |
To remove the capability, run this command:
teeup remove keyboard
This command unloads the LaunchAgent and removes the configuration immediately, so Caps Lock operates as Caps Lock again.
Changing a preference yourself
You can change a preference in System Settings, but teeup writes each preference again when it configures macos-defaults, at bootstrap and during each teeup update.
teeup records the previous value only the first time.
If you change a value manually, the value resets on the next update.
To keep your own values, skip the capability with TEEUP_SKIP, as above, or remove the capability.
Hooks and extending
teeup supports custom additions through hooks, menu rows, and capabilities.
Hooks
A hook is a script of yours that teeup runs after an event. Hooks are in ~/.config/teeup/hooks/<event>.d/.
| Event | Runs after | Arguments |
|---|---|---|
post-bootstrap | ./bootstrap | None |
post-update | teeup update | None after a full update, and the capability name after teeup update <capability> |
theme-set | teeup theme set | The theme name |
teeup runs every file in the directory with bash, in name order, so number the files to set the order:
# ~/.config/teeup/hooks/post-update.d/10-brew-cleanup.sh
if [ -z "${1:-}" ] && command -v brew >/dev/null 2>&1; then
brew cleanup
fi
teeup adds TEEUP_PATH, TEEUP_CONFIG_DIR, TEEUP_STATE_DIR and TEEUP_HOOK_EVENT to the environment of a hook. The standard input of a hook is empty, so a hook cannot ask questions. If a hook fails, teeup prints a warning and continues.
Each directory has an example.sample file that documents its event. teeup does not run files that end in .sample, and it rewrites the sample when its own copy changes. teeup does not change the other files in the directory. If you set DRY_RUN=true, teeup lists the hooks but does not run them.
Menu rows
The menu (see The menu) is share/teeup/menu.json in the checkout. To change the menu, write ~/.config/teeup/menu.json in the same format: one JSON object with dotted ids as keys. For example, install.editors.zed is a row under install.editors.
| Field | Meaning |
|---|---|
label | Required. The text that the row shows. |
icon | Optional. teeup prints it before the label. |
action | A shell command line. A row with an action runs it, and a row without an action is a submenu. |
when | A shell condition. If it exits with a non-zero status, teeup hides the row. |
title | The header that teeup shows when you open the submenu. The default value is the label. |
If a row has the same id as a row in the shipped file, it replaces all of the shipped row, in the same position. teeup adds a new id at the end of its submenu. To hide a shipped row, add "when": "false" to the row.
{
"tools": {"label": "My tools"},
"tools.notes": {"label": "Open notes", "action": "teeup launch Obsidian"},
"setup.migrate": {"label": "Retire the old wiring", "when": "false"}
}
teeup runs conditions and actions with the bin/ directory of the checkout first on the PATH, so teeup always means the teeup that you run. Run teeup dev check to lint the menu.
Your own capability
A capability is a directory under capabilities/ in the checkout. To start a capability from the skeleton, run:
teeup dev new-capability mytool
The command writes the capabilities/mytool/ directory, with the capability metadata file, the install and configure scripts, and a test. The new capability is lazy, so it does not change what ./bootstrap installs until you move it to a different tier.
| File | Holds |
|---|---|
capability | summary, group, tier, requires, provides, packages, casks, apps, and interactive |
install | A script that installs packages and does nothing else |
configure | A script that writes configuration and does nothing else |
remove, doctor | Optional. remove removes what teeup cannot remove from the metadata, and doctor checks the health of the capability. |
config/, home/, default/ | Files that teeup copies once to ~/.config, files that it copies once to $HOME, and the teeup layer |
Then check the capability:
teeup dev check mytool
The “Adding a capability” section of CONTRIBUTING.md in the checkout has more information. It shows how to:
- Report that a capability does not apply to a Mac.
- Add a themed template.
- Write macOS preferences so that
teeup removecan restore them. - Register lazy commands and apps.
A capability that you add lives in your checkout of teeup. If the checkout has uncommitted changes, teeup update stops. After you commit the changes, teeup cannot move the checkout forward, so the update prints a warning and continues with your checkout as it is. Keep the capability on a branch that you merge yourself, or send it upstream.
Migrating
If the old, single-script teeup configured this Mac, or if chezmoi manages its dotfiles, run ./bootstrap first.
Then remove the old configuration with one command.
Preview the command before you run it:
DRY_RUN=true teeup migrate legacy # read what it would do
teeup migrate legacy
teeup doctor # names anything still left over
The dry run changes nothing, and ends with “Dry run finished: nothing was changed.” If it finds a step that a real run will refuse, it tells you, so read its warnings first.
What it does, in order
| Step | What happens |
|---|---|
| 1. The old teeup | teeup deletes ~/.teeup.common, ~/.config/mac-setup, and the ~/.teeupshrc and ~/.shellrc.common symlinks that the old script left. |
| 2. Old shell lines | teeup disables the lines that loaded those files, and the Oh My Zsh, Powerlevel10k, and Antigen lines that the teeup zsh layer and Starship replace. |
| 3. Old runtime managers | teeup disables the SDKMAN, rbenv, and pyenv lines, because they would put their versions before the mise versions. |
| 4. chezmoi | After it asks you, teeup moves aside the files that chezmoi manages in your home directory, and installs its own versions in their place. |
Steps 2 and 3 edit ~/.zshenv, ~/.zprofile, ~/.zshrc, ~/.bashrc, ~/.bash_profile, and ~/.profile.
Before teeup edits a file, it copies the file to <name>.teeup_backup_<timestamp>.
A disabled line stays in the file with the : # Disabled by teeup (...) prefix, so you can see what changed.
The toolchains in ~/.sdkman, ~/.rbenv, and ~/.pyenv stay on the disk.
teeup gives their names, so you can delete them when a new shell works correctly.
The chezmoi step
teeup lists the files that chezmoi manages in two groups: the files that teeup has its own version of, and the other files. Only the backup copy will keep the files in the second group. Then teeup asks one time: “Move the files above aside so teeup can take over this home directory?”. The default answer is no.
If you answer yes, teeup moves each file to <name>.teeup_backup_<timestamp> in the same directory.
teeup then installs its own version again for each capability that is installed on this Mac.
Before the command finishes, ~/.zshrc and the other shell files are in place again, so the next terminal has the teeup layer.
Copy personal data from the backups into your local.* files (read Dotfiles).
If there is no terminal, teeup moves nothing, but shows what a run from a terminal will move and stops.
Last, teeup asks to delete ~/.config/chezmoi, the configuration that points chezmoi to its source.
This is the only item that the chezmoi step can delete, and the default answer is no.
If you keep it, a later chezmoi apply replaces the teeup files with the chezmoi files.
What it never does
- teeup never deletes the chezmoi source directory or its contents, because that checkout can continue to serve other computers.
- teeup never runs
chezmoi purge. It only asks chezmoi what it manages and where its source is. - teeup never deletes or moves items outside your home directory, or inside a git checkout in your home directory. But it does edit your zsh files in the directory that
ZDOTDIRgives, after it makes a backup of each file. It does not change a symlinked file. - teeup never moves your shell files aside if the teeup zsh layer is not installed, because that move would leave you without a
~/.zshrcfile. Instead, it tells you to runteeup install zshfirst.
Every step runs to the end, also when an earlier step refused something, and the output names each item that teeup did not change. Read that output, and do not rely on the exit status.
A refused deletion or a refused move makes teeup exit with a non-zero status.
But the exit status is still 0 if teeup could not edit a zsh file, or if you answered no to a chezmoi question.
It is also 0 if teeup could not ask a chezmoi question because there was no terminal.
After the migration, run teeup doctor to see the items that are still left.
After migrating
Open a new terminal.
Then run teeup update and teeup doctor.
teeup doctor names each item that is still left, with the command that fixes it.
These items can be:
- an Oh My Zsh directory
- Powerlevel10k files
- a shell file that still loads an old configuration
- chezmoi, if it still points to a source directory
- a
~/.gitconfig.localfile with a[user]block that git still reads
Uninstall
teeup uninstall removes teeup from this Mac. Run it in a terminal as your user, not as the root user.
teeup uninstall
It asks three questions in this order. The default answer to each question is no, so if you press Enter, teeup keeps the items.
-
Remove teeup from this Mac? If you answer no, teeup stops and changes nothing.
-
Also uninstall the packages and apps teeup installed? teeup first lists the packages and apps that its capabilities use. If you answer no, it keeps all of them.
The list is not a record of what teeup itself installed. If you installed one of them with
brew installbefore teeup, the list includes it, and a yes answer removes it. To keep it, answer no and remove the others with the commands that the summary shows. -
Also move aside your git identity files and remove teeup’s git and ssh config? If you answer no, teeup keeps your git identity and
~/.ssh/config. teeup never touches SSH keys, for any answer.
To see what teeup will do without changes, preview the command first (the preview asks no questions):
DRY_RUN=true teeup uninstall
Before the package question, teeup lists the installed packages and apps that it recorded. If teeup has no state directory or capability records, it cannot identify which matching software it installed. It then removes nothing, and shows the package-manager commands that you can run manually.
What it does, in order
| Step | What comes off |
|---|---|
| 1. Shell files | teeup removes its lines in ~/.zshrc, ~/.zshenv and ~/.zprofile first, so no new shell calls a tool that a later step removes. It replaces an unedited ~/.zshrc with a short one of your own, and deletes an unedited ~/.zshenv and ~/.zprofile. In an edited file, teeup disables only its own lines and puts a copy of the original next to the file. |
| 2. Capabilities | teeup removes every installed capability, dependent capabilities first, with the same removal process as teeup remove. It removes packages and apps only if you answered yes to them. |
| 3. LaunchAgents | teeup removes each of its LaunchAgents that is still loaded, for example the Emacs daemon and the Caps Lock mapping. |
| 4. Agent skills | teeup removes the “teeup” symlinks that it put in ~/.agents/skills, ~/.claude/skills, ~/.codex/skills, and ~/.gemini/skills. |
| 5. Config files | teeup removes every file that it copied and you did not edit. If teeup replaced your file during install and the .teeup_backup_* copy remains, teeup offers to restore that copy. |
| 6. Identity | teeup does this step only if you answered yes to the third question. It removes the git identity file that it generated, and moves ~/.config/git/local aside because it never wrote that file. It removes ~/.ssh/config and ~/.config/git/config only if teeup put them there and you never edited them. |
| 7. teeup itself | Last, and only if no step above was refused or failed, teeup removes ~/.local/bin/teeup and the files that it wrote in ~/.config/teeup and ~/.local/state/teeup. If you have a machine file, hook, or theme of your own, teeup keeps ~/.config/teeup and names it. |
What it keeps
| Kept | Why, and how to remove it yourself |
|---|---|
| Your SSH keys | Always. teeup never deletes an SSH key. If you answered yes to the third question, the summary shows commands that remove the passphrase of each key from the Keychain and move the key aside. The public keys stay on GitHub, so delete them at github.com/settings/keys. |
| Packages and apps | Unless you answered yes to them. The summary shows the brew uninstall or port uninstall command for them. |
| Homebrew or MacPorts | Always. The summary gives the name of the uninstaller that the package manager supplies. |
| The Xcode Command Line Tools | Always, because they belong to macOS. |
| Config files you edited | Always. The summary lists them. |
| Your secrets | Always. The summary lists them with the security delete-generic-password command for each secret. |
~/Work | Always, because your projects are in this directory. |
| The checkout | Always. The last lines show rm -rf ~/.local/share/teeup, which you can run when you no longer want the checkout. |
teeup also leaves the items that the tools made for themselves. These include the runtimes that mise installed, a Doom or Spacemacs checkout, and the theme and font keys in the Zed and VS Code settings.
teeup refuses to change anything outside your home directory or inside a git checkout, and refuses to write through a symlink. It does not uninstall the zsh that your login shell runs, so to change back to /bin/zsh, run chsh -s /bin/zsh first.
Keeping Homebrew and mise on PATH
The teeup shell layer added Homebrew or MacPorts, mise, and ~/.local/bin to your PATH. After teeup removes its lines, a new shell cannot find them. The summary shows the command to add the line for each tool that stays. On Apple Silicon with Homebrew, the commands are:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/mise activate zsh)"' >> ~/.zshrc
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
teeup skips a line that your file already contains, and skips the two ~/.zshrc lines if the uninstall removes mise. Intel Homebrew in /usr/local is on the macOS default PATH already, so teeup does not show a Homebrew line for it.
After removing packages
If ~/.config/git/config remains but the uninstall removed delta, git-lfs, or the GitHub CLI, the file still names them. The summary lists each setting with the git config command to remove it.
When something is refused
The summary lists the items that teeup removed, kept and refused, and the items that failed. After a refusal or a failure, teeup keeps its own command, config, and state, and exits with a non-zero code. It shows the command to run again after you fix the cause. The command includes your answers as flags, so you can paste it without changes. A second run on a clean Mac changes nothing.
Afterwards
Open a new terminal, or run exec /bin/zsh -l. The shell that ran the uninstall loaded the teeup hooks when it started, and calls them until you replace it.
In scripts
The --yes flag confirms the teeup removal without questions, so use it with care. Each other flag answers one optional question in advance. Scripts require --yes because the command refuses to run without a terminal.
| Flag | Answers |
|---|---|
--packages | Yes to the packages and apps question. |
--identity | Yes to the git identity and config question. |
--yes | Yes to the teeup removal, and no to every optional question that no other flag answers. |
For example, teeup uninstall --yes --packages removes teeup and its packages, and keeps your git identity.
Doctor and troubleshooting
Run teeup doctor to check the system state.
For every problem, it names the command that fixes it.
teeup doctor # every installed capability
teeup doctor git # one capability
What doctor checks
For each installed capability, doctor prints a heading == git: ... == and checks that the packages, casks, and apps that its metadata names are installed.
It also checks each tool from mise.
The link in ~/.local/bin must point to the teeup link in ~/.local/state/teeup/tools, at the version of the teeup release, and the tool must run.
It also runs the checks in the doctor script of the capability, if it has one.
Eleven capabilities have a doctor script, including ssh (key pairs, file modes, the Host blocks), git, github, zsh, mise, starship, and aerospace.
If you skip a capability with TEEUP_SKIP, doctor excludes it from a full run, but you can name the capability to check it.
At the end, doctor lists every problem with its fix:
❌ teeup doctor found 1 problem(s):
ssh: The personal identity has no key pair at /Users/you/.ssh/id_ed25519_personal.
fix: teeup configure ssh
The exit status has three values:
| Exit | Meaning |
|---|---|
| 0 | Everything that doctor checks is healthy. |
| 1 | Doctor found problems. |
| 2 | Doctor could not check an item, for example because it could not reach a GitHub host or a package manager did not answer. The Mac can be healthy or not healthy there. |
Doctor prints advisory notes, such as the AeroSpace Accessibility reminder, as warnings that do not change the exit status.
The logs
teeup keeps its logs in ~/.local/state/teeup/logs/.
| Log | Written by |
|---|---|
bootstrap.log | ./bootstrap writes the start, the end, and the output of each step. |
lazy.log | The installs that a lazy shim starts, and the first downloads of the AI tools. |
The log does not capture the steps that need your terminal, such as the SSH passphrase and the GitHub sign-in. In their place, the log has a message. Other commands print to the terminal only.
Common problems
teeup: command not found right after bootstrap
The shell that ran ./bootstrap started before teeup added ~/.local/bin to your PATH.
Open a new terminal, or run ~/.local/bin/teeup.
File icons in ls show as boxes
The ls command is eza with icons that need a Nerd Font in the terminal, and WezTerm has one.
In Terminal.app, select Settings, Profiles, Text, Font, and “JetBrainsMono Nerd Font”.
Without a Nerd Font, the macOS font fallback draws some icons, but not most folder and file icons.
WezTerm does not open in a virtual machine
WezTerm can fail with “failed to create NSOpenGLPixelFormat” in a macOS VM.
Add this code to ~/.config/wezterm/local.lua:
return {
config = {
front_end = "WebGpu",
},
}
Emacs still runs the old configuration
The Emacs daemon keeps its initial configuration. When you change the flavor or your init files, restart it:
launchctl kickstart -k gui/$(id -u)/sh.teeup.emacs
brew uninstall emacs removed Emacs.app
If the terminal-only emacs formula from Homebrew is installed, teeup shows a warning, because this formula stops the emacs-app cask from linking emacs and emacsclient.
teeup suggests brew uninstall emacs to remove the formula.
If the emacs formula is not installed, Homebrew applies that command to the emacs-app cask instead and removes Emacs.app.
Check first:
brew list --formula emacs # only uninstall if this lists it
If Emacs.app is gone, run teeup install emacs to install it again.
AeroSpace does not move any windows
AeroSpace needs Accessibility access one time for each Mac. Open System Settings. Select Privacy & Security, and then Accessibility. Enable AeroSpace.
Stray characters such as [?2026 appear in a prompt
The characters are part of a reply from your terminal, not text that you typed.
The teeup prompts come from gum, which asks the terminal a question when a prompt opens.
If the reply arrives late, gum reads part of it as text that you type.
Delete the characters before you type your answer.
If teeup saved an answer with the characters, change it with teeup config set, for example teeup config set TEEUP_EMAIL you@example.com.
If you do not want to use gum, run ./bootstrap with plain prompts:
TEEUP_NO_GUM=1 ./bootstrap
Ctrl-C at a prompt
Ctrl-C stops the run, also at a prompt, but teeup keeps the answers that you gave.
teeup lets the current command finish its cleanup, then stops with exit status 130 and runs no later step.
Run ./bootstrap again to continue from the point where it stopped.
teeup update does not move the checkout
teeup update moves the checkout in ~/.local/share/teeup only forward. The message tells you why it did not move:
| Message | What to do |
|---|---|
| “has uncommitted changes” | Commit, stash, or discard the changes in the checkout. Then run teeup update again. |
| “teeup is ahead of the newest release” | Nothing. This is correct for a checkout that followed main. The checkout moves when a newer release exists. |
| “has commits that the newest release … does not have” | The checkout has your own commits. Move them to a branch, or run teeup update --main if you want to follow main. |
| “The checkout … has commits that origin/main does not have” | You made commits on top of a release. Put them on a branch, then run teeup update --main again. |
| “The local branch main … has commits that origin/main does not have” | Move your commits from main to a different branch. Then run teeup update --main again. |
| “git fetch failed” with a certificate message | The network re-signs HTTPS. Run teeup doctor ca-bundle, or run teeup update on a different network. |
The installer stops
The one-line installer stops with a message in these cases:
| Message | What to do |
|---|---|
| “is not a git checkout of teeup” | Move the directory ~/.local/share/teeup aside. Then run the installer again. |
| “softwareupdate could not install” or “The Command Line Tools are still missing” | Run xcode-select --install, complete the dialog, and then run the installer again. |
| “git clone … failed” | If the message names a certificate, the network re-signs HTTPS, and no company certificate is trusted in the System keychain. See Company certificates. |
| “Run the installer as your own user” | Do not use sudo for the installer. The installer asks for your password when it needs it. |
| “is not writable”, “does not allow new folders”, or “refuses new folders” | A folder teeup writes to (or the nearest existing folder above it) failed a test create. The message names the exact folder and a command to inspect or fix it. If you own it: ls -lde it to see its permissions, then chmod u+wx it. If it is the exact folder teeup asked for and someone else owns it: a non-recursive chown naming your own user and group. Run the installer or ./bootstrap again after. |
| “does not let you create” | The exact folder teeup asked for does not exist yet, and a folder above it belongs to someone else. teeup never suggests a recursive chown of a shared folder above your own; create the named folder yourself with the right owner (the message shows an example command), or point the setting it names somewhere you already own. |
| “teeup created … but could not remove it” | teeup tests a folder by creating something inside it, then removing it. The removal itself failed. Remove the named item yourself with the rm -rf command the message shows. |
| “is a symlink that cannot be resolved” | A folder teeup writes to, or a folder above it, is a symlink whose target is missing, or the links form a loop. Fix the link’s target, or remove the link. Run the installer or ./bootstrap again after. |
| “is a symlink, and not to a teeup checkout” | ~/.local/share/teeup is a symlink that is dangling, loops, or points somewhere that is not a teeup checkout. Move it aside, then run the installer again. |
If the installer shows “Waiting for the Command Line Tools installer to finish”, complete Apple’s dialog. The installer continues when the tools are installed.
A script fails with exit status 127 and “is provided by capability”
A command called a lazy shim without a terminal, so the shim could not ask you and did not install anything.
Run the printed teeup install command one time in a terminal.
Doctor says that Homebrew still has an old copy of a tool
In teeup 0.3.0-beta and older, Homebrew or MacPorts installed tools such as ripgrep, Starship, and Neovim. Now mise installs them at the versions of the teeup release. The old copies stay installed, and teeup update does not upgrade them.
Doctor shows a warning for each old copy, with the command that removes it, for example brew uninstall ripgrep. The warning does not change the exit status. teeup does not remove the old copies itself.
A tool link in ~/.local/bin is missing or broken
teeup links each tool in two steps. ~/.local/bin/rg points to ~/.local/state/teeup/tools/rg, and that link points to the version that mise installed. mise uninstall and mise prune can remove that version, and doctor then reports the link as broken. If you delete ~/.local/state/teeup, doctor reports the second link as missing. Run the fix that doctor shows, for example teeup configure cli-tools. This command installs the pinned version again and repairs the links.
Commits are not signed
teeup enables commit signing only when your SSH key exists.
Run teeup configure git.
Still stuck
Run teeup doctor and teeup status.
Look at the end of ~/.local/state/teeup/logs/bootstrap.log.
Every teeup command that changes an item has a preview.
Put DRY_RUN=true in front of the command to see the commands that it would run.
FAQ
Linux support
teeup is for macOS, and ./bootstrap stops on any other system. On Arch Linux, Omarchy, which inspired teeup, does the same job.
Supported architectures
teeup supports Apple Silicon and Intel. On Apple Silicon, teeup installs Rosetta 2 so that Intel-only applications run.
Package managers
Homebrew is the default package manager on macOS 13 and newer, and MacPorts on macOS 12 and older. The first question of the first run lets you select the package manager.
MacPorts has no casks. If you use MacPorts, teeup marks the GUI applications that only exist as casks as “not applicable” and lists their download pages. These applications include Zed, VS Code, Cursor, and the browsers. See Getting started.
Password prompts
./bootstrap asks for your password for sudo, because the package manager and the system settings require it. If you change your login shell to zsh, the system asks for your password again.
Storage locations
| Path | What |
|---|---|
~/.local/share/teeup | The checkout: the teeup code, its layers, and its themes |
~/.local/bin/teeup | A link to the teeup command in the checkout |
~/.config/teeup/ | Your answers, the machine file, the hooks, and the menu additions |
~/.local/state/teeup/ | A record of what teeup did: the markers, the shims, the rendered theme, the checksums of the copied files, and the logs |
Dotfiles
teeup does not overwrite the dotfiles that you edit. If teeup must replace one of your files, it first renames your file to <name>.teeup_backup_<timestamp> and prints the lines that differ. After that, you own every copied file. See Dotfiles.
Migrating from older tools
teeup migrate legacy retires the wiring from chezmoi or the old teeup on this Mac. Run it with DRY_RUN=true first to preview the changes. Migrating lists what it moves aside and what it keeps.
Skipping capabilities
Answer no to the daily set in the wizard, or run ./bootstrap --skip-daily. If you never want a capability on a Mac, list it in TEEUP_SKIP in the machine file (see Answers and machines).
Adding new tools
Install the new tool with brew install. teeup update upgrades only the packages that teeup capabilities use, so you upgrade the new tool yourself with brew upgrade. To make the tool part of teeup, write a capability (see Hooks and extending).
Removing capabilities
Run teeup remove <capability>. It runs the removal steps of the capability and uninstalls its packages and casks, but keeps your configuration files. It stops if another installed capability requires this capability, or if teeup cannot undo the capability. The next ./bootstrap installs a removed core or daily capability again, unless you skip it.
Uninstalling teeup
Run teeup uninstall after you preview the changes with DRY_RUN=true. It keeps your packages, the edited files, the SSH keys, and the checkout, unless you tell it to remove them. See Uninstall.
SSH keys
teeup does not delete SSH keys. See Identity.
Using bash
The teeup shell layer uses zsh, and the zsh capability makes /bin/zsh your login shell. You can run bash scripts as usual, but the teeup aliases, PATH, and tool configuration are in zsh.
Telemetry and network usage
teeup does not collect data or require an account. It connects to the network to download packages, and to update its checkout during teeup update. It also connects to sign you in to GitHub and to upload your public SSH key, which you approve in the browser.
The newest code
teeup update installs the newest release. To get the code on main before it is in a release, run teeup update --main. The code on main can be unstable. To follow releases again, run teeup update --release. See Release or main.
Reading the installer first
The one-line installer sends the script from curl directly to bash. To read the script before it runs, download it, read it, and then run it with bash install.sh. Getting started shows the commands.
Manual version
This manual applies to teeup 0.4.0-beta. teeup version prints the version that you have.