Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

FileOwnerWhat it holds
~/.config/wezterm/wezterm.luaYouLoads the teeup layer. Add settings below its local config = ... line.
~/.config/wezterm/local.luaYouMachine-specific settings, which the file returns as a table. All of it is a comment at first.
capabilities/wezterm/default/teeup/wezterm.luateeupThe configuration in the checkout. teeup update changes it.

teeup copies the two files in ~/.config/wezterm one time. local.lua understands four entries:

EntryExampleEffect
font_sizefont_size = 13.0Sets 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_rulesA regex and format pairConfigures extra Cmd+Click link patterns.
configconfig = { 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.

KeysAction
Cmd+Shift+POpen the command palette
Cmd+Shift+RReload the configuration
Cmd+KClear the scrollback and the screen
Leader 3 / Leader 2Split side by side / split top and bottom
Leader o, or Leader and an arrowMove to the next pane, or to the pane in that direction
Leader 1Zoom or unzoom the current pane
Leader 0Close the current pane
Leader c / Leader kOpen a new tab / close the current tab
Leader f / Leader bGo to the next tab / go to the previous tab
Leader wName a new workspace and open it
Leader sSelect a workspace from a fuzzy list: the configured workspaces, then every other open workspace
Leader dReturn to the default workspace
Leader rStart resize mode, where the arrows resize the pane. Escape or Return stops it.
Leader vStart copy mode
Leader qStart 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.

TerminalHow to get itCapability
Ghosttyteeup launch ghostty, or teeup install ghosttyghostty
AlacrittyType alacritty, teeup launch alacritty, or teeup install alacrittyalacritty
iTerm2teeup launch iterm2, or teeup install iterm2iterm2