Howto is a terminal helper which queries OpenAI API and inserts the result into the current terminal input.
Simply press ctrl+g to call howto. Howto replaces your command with a correct command from LLM.
go install github.com/antonmedv/howto@latest
Or download prebuild binaries.
Add a key binding to .zshrc or a similar config:
Zsh |
---|
bindkey -s "\C-g" "\C-ahowto \C-j" |
Write a command in terminal and press ctrl+g to send current command to OpenAI API. LLM response will be inserted into the current input. You can modify the returned command, before executing it.
Recall previous command from history and to adjust the prompt.
Use howto to list all container's hostnames:
Use howto to convert a movie to mp4: