Show HN: Zsh-AI – Natural language to shell commands in your terminal
1 Sharpie4679 0 6/27/2025, 3:55:18 PM github.com ↗
I built this lightweight plugin because I kept forgetting command syntax for things like finding processes on ports or batch file operations. It's been saving me time, so I'm sharing it in case others find it useful.
How it works: Type `# kill process on port 3000` and you'll get `lsof -ti:3000 | xargs kill -9`
- Single 5KB shell script, no Python/Node dependencies
- Works with any shell that supports command substitution
- Uses Anthropic's API (you need your own key)
- Commands are suggested, not auto-executed, for safety
See a demo at https://github.com/matheusml/zsh-aiThis is a simple first version - I'd really appreciate feedback on what would make it more useful for your workflow!
No comments yet