An open API service indexing awesome lists of open source software.

https://github.com/antonmedv/howto

A terminal helper for querying LLM
https://github.com/antonmedv/howto

Last synced: about 2 months ago
JSON representation

A terminal helper for querying LLM

Awesome Lists containing this project

README

        

# howto




walk demo


**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.

## Install

```
go install github.com/antonmedv/howto@latest
```

Or download [prebuild binaries](https://github.com/antonmedv/howto/releases).

### Setup

Add a key binding to **.zshrc** or a similar config:

Zsh

```bash
bindkey -s "\C-g" "\C-ahowto \C-j"
```

## Usage

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.

## Related

- [walk](https://github.com/antonmedv/walk) – terminal file manager
- [fx](https://github.com/antonmedv/fx) – terminal JSON viewer

## License

[MIT](LICENSE)