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
- Download Termhint, move it to Applications and open it. On launch it adds one marked block to
~/.zshrc, backed up first. - Allow Termhint in System Settings → Privacy & Security → Accessibility. Termhint shows macOS's prompt on first launch, and notices the change without a restart (permissions).
- In Cursor's
settings.json, set"editor.accessibilitySupport": "off", so the editor doesn't switch to screen-reader mode. - Open a new terminal tab. Tabs that were open before Termhint set up zsh don't have it yet.
- Type
npm runin a project with apackage.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
- Icons: Cursor's terminal draws icons only with a font in its own list.
termhint icons on cursoradds a Nerd Font toterminal.integrated.fontFamily(before a generic family such asmonospace) in~/Library/Application Support/Cursor/User/settings.json, keeping the rest of the list and your comments;termhint icons off cursorputs it back. Open a new terminal tab to see it. - Font:
termhint icons font on cursorputs the Nerd Font you chose first in that list; Cursor needn't be quit. - Colors, prompt themes and tab titles, set by the shell in the integrated terminal.
- Live values: git branches, ssh hosts, Docker containers and Makefile targets, read by Termhint itself. Bundled completions cover 3,272 commands.
Limits in Cursor
- The popup needs Accessibility in Cursor.
- It works in the integrated terminal, for what you type; it doesn't change what Cursor's agent runs.
- zsh only, Apple silicon, macOS 14 or later. Inside tmux it works, still with Accessibility; not inside GNU screen.
Not working?
- No popup: check Accessibility for Termhint and
editor.accessibilitySupport. - Two popups: turn off the editor's own terminal suggestions if it shows any.
- 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.
- Your shell must be zsh. bash gets prompt themes and colors, no popup.
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.