thefuck
« Back to VersTracker
Description:
Programmatically correct mistyped console commands
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli productivity shell developer-tools automation
Install: brew install thefuck
About:
Thefuck is a tool that corrects errors in previous console commands. It inspects the last command's output and offers a corrected version that the user can execute with a single keystroke. This saves time and reduces frustration from typos and incorrect syntax.
Key Features:
  • Supports multiple shells including bash, zsh, and fish
  • Offers customizable rules for command correction
  • Enables quick confirmation with a single keystroke
  • Works with a wide range of common command-line tools
Use Cases:
  • Correcting typos in git, apt, or docker commands
  • Fixing permission denied errors by prepending sudo
  • Retrying commands that failed due to temporary network issues
Alternatives:
  • bash-history – Relies on manual search and re-execution of previous commands
  • zsh-autosuggestions – Provides inline suggestions as you type, rather than post-command correction
Version History
Detected Version Rev Change Commit
Sep 12, 2025 12:42am 0 VERSION_BUMP c1e233d6
Oct 10, 2024 2:25pm 0 VERSION_BUMP a6c93693