Termhint Get Termhint

Terminals · Cursor

Cursor terminal autocomplete: a zsh popup in the integrated terminal

Last checked 20 November 2026

In short: Cursor's terminal docs describe its agent running commands, and no completion menu for the commands you type. Termhint adds a zsh autocomplete popup at the cursor in Cursor's integrated terminal on a Mac. It needs the Accessibility permission and one editor setting.

Set up terminal autocomplete in Cursor

  1. Download Termhint, move it to Applications and open it. On launch it adds one marked block to ~/.zshrc, backed up first.
  2. Allow Termhint in System Settings → Privacy & Security → Accessibility. Termhint shows macOS's prompt on first launch, and notices the change without a restart (permissions).
  3. In Cursor's settings.json, set "editor.accessibilitySupport": "off", so the editor doesn't switch to screen-reader mode.
  4. Open a new terminal tab. Tabs that were open before Termhint set up zsh don't have it yet.
  5. Type npm run in a project with a package.json. The popup lists its scripts; Tab, the arrows, Esc and Enter go to it only while it is open.

What Cursor does in its terminal

Cursor's terminal docs are about its agent: Cursor "runs shell commands directly in your terminal", with run modes and a sandbox deciding what runs (Cursor terminal docs), and its help adds generating commands from natural language (Cursor terminal help). Neither page describes a completion menu for commands and options. That is what Termhint adds, for the lines you type yourself.

Cursor's docs also suggest skipping heavy prompts such as Powerlevel10k when its agent runs; Termhint's prompt themes are drawn by the shell without a process per prompt.

How it finds the cursor in Cursor

Cursor is built on VS Code, and its terminal is a web view. Termhint turns on Electron's accessibility tree in Cursor (the switch meant for this, not the screen-reader one) and reads the cursor from the terminal's hidden text field, which sits on the cursor cell. That is why Accessibility is needed. It reads the terminal text field that has focus; a split terminal hasn't been tried yet. Termhint knows Cursor by its app identifier.

What else Termhint sets in Cursor

Limits in Cursor

Not working?

More fixes: terminal autocomplete not working and troubleshooting. The same setup in other editors: VS Code and Windsurf.

FAQ

Does Termhint need Accessibility in Cursor?

Yes. Termhint turns on Electron's accessibility tree in Cursor and reads the terminal cursor from it.

Why set editor.accessibilitySupport to off?

So Cursor doesn't switch to screen-reader mode while Termhint reads its accessibility tree.

Does Termhint change what Cursor's agent runs?

No. The popup completes the lines you type in the integrated terminal; Cursor's agent and its commands are left as they are.

How do I get Nerd Font icons in Cursor's terminal?

Run termhint icons on cursor. It adds a Nerd Font to terminal.integrated.fontFamily in Cursor's settings.json, and termhint icons off cursor puts it back.

Download for Mac All supported terminals