ccline — type English at your zsh prompt, AI answers with runnable MySQL/shell commands #1930
jianshuo
started this conversation in
Show and tell
Replies: 1 comment
-
|
Neat! There is an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I built ccline — a tiny zsh hook that lets you type a plain English thought directly at your shell prompt, get an AI answer back, and run the suggested commands.
For MySQL/database users, useful for those moments when you know what you want to do but can't remember the exact syntax:
→ ccline gives back the SQL query for mycli, you press Enter to run it.
Works by hijacking zsh's
command_not_found_handler— any unrecognized "command" gets sent to the AI. One-line install:The irony is that I built this tool partly because I kept forgetting mycli's
\d+vsDESCRIBEvsSHOW COLUMNSsyntax :) Happy to hear if others find it useful.Beta Was this translation helpful? Give feedback.
All reactions