| name | thefuck |
| description | Use this skill when the user wants to correct mistyped console commands. |
Thefuck Plugin
Magnificent app which corrects your previous console command by analyzing common mistakes.
Commands
Command Correction
thefuck command correct — Correct the previous console command
thefuck command alias — Print shell alias for thefuck
Usage Examples
- "thefuck command correct"
- "thefuck command correct --yes"
- "thefuck command alias --shell zsh"
Installation
brew install thefuck
pip install thefuck
eval $(thefuck --alias)
Examples
$ puthon
No command 'puthon' found, did you mean 'python'?
$ fuck
python
$ fuck --yes
$ fuck --alias
eval $(thefuck --alias)
$ apt install python
E: Could not open lock file
$ fuck
sudo apt install python
$ git push --force-with-lease
fatal: --force-with-lease is not a valid option
$ fuck
git push --force-with-lease origin main
$ grut init
No command 'grut' found
$ fuck
git init
Key Features
- Corrects typos in command names
- Adds missing sudo
- Fixes wrong flags
- Corrects path issues
- Supports custom rules
- Shell aliases for quick access
- Multi-language support
- Configurable behavior