Terminals · Alacritty
Alacritty autocomplete: a zsh popup at the cursor
Last checked 20 November 2026
In short: Termhint adds a zsh autocomplete popup at the cursor in Alacritty on a Mac, without the Accessibility permission. Alacritty has no split panes of its own; run tmux in it for splits. Termhint can also write its color scheme into alacritty.toml and switch Alacritty to the Nerd Font build of its font for prompt icons.
Set up Alacritty autocomplete for zsh
- Download Termhint, move it to Applications and open it. On launch it adds one marked block to
~/.zshrc, backed up first. - Termhint shows macOS's Accessibility prompt at first launch; Alacritty doesn't need it, so you can decline it (permissions).
- Open a new Alacritty window. Ones that were open before Termhint set up zsh don't have it yet.
- Type
git ch. The popup opens under the cursor; Tab, the arrows, Esc and Enter go to it only while it is open.
How it finds the cursor in Alacritty
On every edit zsh asks Alacritty for the cursor cell and the cell size with standard, invisible queries (about a millisecond; keys typed meanwhile are kept). Termhint places the popup in the window by Alacritty's default layout: no padding, the grid starting at the top left. The window's frame is public, so no permission is involved.
Alacritty's layout has not been tested on screen yet, so the popup can sit a little off. Custom window padding shifts it too.
What else Termhint sets in Alacritty
- Colors: 23 schemes through the shell, and with
termhint colors native alacrittyalso in Alacritty's own config. Termhint writestermhint-colors.tomlbeside~/.config/alacritty/alacritty.toml(or~/.alacritty.toml) and imports it under[general], backed up first; Alacritty reloads its config by itself. With a light and a dark scheme, Alacritty gets the one for the current appearance, and Termhint rewrites it when macOS switches. See terminal colors. - Icons: Alacritty draws everything with one font, so
termhint icons on alacrittysetsfont.normal.familyto the Nerd Font build of your font (Menlo, the default, becomes Meslo), installed when missing, keeping your comments.termhint icons off alacrittyputs it back. - Font:
termhint icons font on alacrittysets the Nerd Font you chose in Settings asfont.normal.family; Alacritty needn't be quit. - Prompt themes and tab titles, set by the shell.
- Live values: git branches, ssh hosts, Docker containers and Makefile targets, read by Termhint itself. Bundled completions cover 3,272 commands.
Limits in Alacritty
- The popup's placement in Alacritty's window is not yet tested on screen and can be a little off.
- Only
alacritty.tomlis changed:alacritty migrateconverts analacritty.yml. A config that sets colors itself, or already has an import list, is left alone, and Termhint says what to change. - Colors and icons in Alacritty's config are tested against its files, not yet on a real screen.
- zsh only, Apple silicon, macOS 14 or later. Not inside GNU screen; tmux works.
Not working?
- Open a new window after installing.
- The panel under Termhint's menu-bar icon shows whether autocomplete is on, the one step left if it is not, and the terminal tabs connected.
- Esc hides the popup until the line changes.
More fixes: terminal autocomplete not working and troubleshooting. Similar terminals: kitty and WezTerm, which has split panes without a permission.
FAQ
Does Termhint need Accessibility in Alacritty?
No. zsh asks Alacritty for the cursor cell and the cell size with standard queries, and Termhint places the popup in the window, whose frame is public.
Can I use split panes with the popup in Alacritty?
Alacritty has no split panes of its own. Run tmux in it: tmux says where each of its panes sits, so the popup follows you between them.
Can Termhint write colors into alacritty.toml?
Yes. termhint colors native alacritty puts the scheme in a file beside alacritty.toml and imports it under [general], backed up first; termhint colors native off alacritty takes it out again.
Why does Alacritty need a Nerd Font for icons?
Alacritty draws with one font, so the icons must be in it. Termhint switches font.normal.family to the Nerd Font build of your font, such as Meslo for Menlo.