Skip to content

Add ccline - AI-powered command_not_found handler for zsh (CLI section)#117

Open
jianshuo wants to merge 1 commit into
ohmyzsh:mainfrom
jianshuo:main
Open

Add ccline - AI-powered command_not_found handler for zsh (CLI section)#117
jianshuo wants to merge 1 commit into
ohmyzsh:mainfrom
jianshuo:main

Conversation

@jianshuo

Copy link
Copy Markdown

What does this add?

ccline — a zsh plugin that hijacks command_not_found_handler. When you type a natural-language thought at your prompt (two or more words that aren't a real command), it sends the query to Claude or Codex, renders the answer as Markdown, and shows an interactive arrow-key menu to confirm and run any suggested commands in your live shell.

Key behaviors:

  • One word (typo like gti) → passes through normally, no API call
  • Two+ words → treated as a question, sent to AI
  • Selected commands run in the live shell — so cd, export, aliases all persist

Install:

curl -fsSL https://raw.githubusercontent.com/jianshuo/ccline/v0.2.2/install.sh | bash

Requires: zsh + claude CLI (preferred) or codex CLI — auto-detected.

Added to the CLI section as it's a general-purpose shell enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant