howto

command module
v0.0.0-...-632e958 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 11 Imported by: 0

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.

Setup

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

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

Examples

Use howto to list all container's hostnames:

howto example

Use howto to convert a movie to mp4:

howto example
  • walk – terminal file manager
  • fx – terminal JSON viewer
  • countdown – terminal countdown timer

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳