Magnificent app which corrects your previous console command
The Fuck is a command-line tool that automatically corrects errors in your previous console commands. Inspired by the frustrating experience of typing commands incorrectly, it intelligently analyzes your failed command and suggests the correct version, which you can execute by simply typing 'fuck' (or any alias you prefer).
The tool supports a wide range of corrections across dozens of popular command-line tools and scenarios. It can fix typos (like 'puthon' to 'python'), add missing sudo privileges, correct git commands, fix file permissions, and handle many other common mistakes. The corrections are presented with confirmation prompts by default, though you can disable this for faster execution.
The Fuck is perfect for developers, system administrators, and anyone who frequently uses the command line. It includes built-in rules for popular tools like git, docker, npm, pip, apt-get, and many others, while also allowing you to create custom correction rules. The tool integrates seamlessly into your existing workflow and can significantly reduce the frustration of retyping commands.
# via Homebrew
brew install thefuck
# via Ubuntu/Mint
sudo apt update && sudo apt install python3-dev python3-pip python3-setuptools && pip3 install thefuck --user
# via pip
pip install thefuck