Thanks to visit codestin.com
Credit goes to github.com

Skip to content

catallo/ht

Repository files navigation

ht - a shell command that answers your questions about shell commands.

demo4.mp4
Usage
  • ht <instruction> - answers with shell command

  • ht e|explain - explains last answer

  • ht e|explain  [command] - explains command

Examples
  • ht find all IPv4 addresses in file A and write to file B
  • ht explain
  • ht explain ls -lS
  • ht explain "ps -aux | grep nvidia"
About

I initially created ht as a simple experiment to test GPT-3.5-Turbo's usefulness with shell commands. However, I now find myself using it extensively in my daily tasks. So I'm sharing it with the hope that it can benefit others in the same way.

ht is written in Dart. This means it's one single binary that you can easily add to your system's PATH. (If you don't know how to do this, ask ht.) The binary is fully self-contained and does not have any dependencies.

To use ht, you'll need an OpenAI API key. The good news is that due to ht's low token usage, a typical request costs about $0.00025, making it an incredibly budget-friendly tool for daily usage. You can sign up for an API key here or refer to this article for detailed instructions.

Downloads

ht-v2.0.2 for Linux 64-Bit

ht-v2.0.2 for MacOS ARM64