Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 364 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 364 Bytes

Simple shell command typo correction using OpenAI GPT. Inspired by https://github.com/nvbn/thefuck

Implemented for bash.

Requires openai library.

To use: 1- Change your api key in main.py
2- Add the path to main.py in wtf.sh
3- Add: alias wtf='PATH_TO_SCRIPT/wtf.sh' to ~/.bashrc

Example Usage