mmkostov / ai-command-correct

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI Linux Shell Command Correction

This script integrates LLMs into your Linux shell, provides an explanation of a wrong command, and outputs the correct one.

Usage

Type any Linux command. If it's valid, it will be executed and the output will be printed. If not, the script will send a request to the API and return the correct command with an explanation.

You can use any API or model and customize the prompt to your needs.

Installation

Run the script by typing ./shell.sh in the terminal or paste it in your PATH.# ai-command-correct

About


Languages

Language:Shell 100.0%