Termhint Get Termhint

Terminals · Ghostty

Ghostty autocomplete: zsh suggestions at the cursor

Last checked 19 November 2026

In short: Ghostty has no command autocomplete of its own; its shell integration covers prompts, the working directory and the cursor. Termhint adds a zsh autocomplete popup at the cursor in Ghostty, with completions for 3,272 commands and your git branches. A single pane needs no permission; in split panes the popup shows once Termhint is allowed Accessibility.

Set up Ghostty autocomplete for zsh

  1. Download Termhint, move it to Applications and open it. On launch it adds one marked block to ~/.zshrc, backed up first.
  2. Termhint shows macOS's Accessibility prompt at first launch. For a single pane you can decline it: zsh asks the terminal where the cursor is, and Termhint places the popup in the window, whose frame is public. For split panes, allow it, or later in System Settings → Privacy & Security → Accessibility (permissions).
  3. Open a new tab. Tabs that were open before Termhint set up zsh don't have it yet.
  4. Type git ch. The popup opens under the cursor; Tab, the arrows, Esc and Enter go to it only while it is open.

What Ghostty does itself

Ghostty's shell integration for zsh adds, among other things: no close confirmation at a prompt, new terminals starting in the previous one's directory, prompts that redraw correctly on resize, a bar cursor at the prompt, jumping between prompts and option-click to move the cursor (Ghostty shell integration docs). A completion menu is not on that list, and Ghostty's features pages don't describe one. Termhint works next to Ghostty's integration; both can stay on.

Ghostty autocomplete like Warp?

Warp shows a completions menu for commands, options and paths in its own input editor, opened with Tab or as you type (Warp docs). Termhint gives Ghostty a similar popup under the cursor, as you type, inside zsh, with your git branches, ssh hosts and Docker containers. What it does not copy: Warp's input editor and its AI features. Termhint does not work inside Warp itself; Termhint vs Warp has the details. If you want everything Warp does, use Warp.

How Termhint finds the cursor in Ghostty

On every edit zsh asks Ghostty for the cursor cell and the cell size with standard, invisible queries (about a millisecond; keys typed meanwhile are kept). Termhint then places the popup in the window by Ghostty's default layout. That is why a single pane needs no Accessibility permission. In a split pane, Termhint also needs to know where the pane is: with Accessibility allowed, macOS reports the focused pane's view.

What else Termhint sets in Ghostty

Limits in Ghostty

Not working?

More fixes: terminal autocomplete not working and troubleshooting.

Download for Mac All supported terminals