AI Shell Command Generator using LLM
- Prompts
llm
to write you a simple shell command with an explanation. - Copies the command to your clipboard (even if you cancel generation before the explanation completes).
llmc revert the changes from the last two git commits
Install and configure the llm CLI tool. Add the llmc
function to your .zshrc
.
- Prompts specifically for a ZSH command on a macOS machine
- Obviously, be careful running commands you don't understand & use at your own risk.
@kamalmost I think it should work in Bash as is, you’d just want to put it in .bashrc and change the prompt to say it’s a bash terminal instead