Install command:
brew install thefuck

Programmatically correct mistyped console commands

License: MIT

Formula JSON API: /api/formula/thefuck.json

Formula code: thefuck.rb on GitHub

Bottle (binary package) installation support provided for:

Apple Silicon ventura
big sur
Intel ventura
big sur
64-bit linux

Current versions:

stable 3.32
head ⚡️ HEAD

Depends on:

python@3.11 3.11.5 Interpreted, interactive, object-oriented programming language
six 1.16.0 Python 2 and 3 compatibility utilities
Add the following to your .bash_profile, .bashrc or .zshrc:

    eval $(thefuck --alias)

For other shells, check


Installs (30 days)
thefuck 1,290
Installs on Request (30 days)
thefuck 1,290
Build Errors (30 days)
thefuck 0
Installs (90 days)
thefuck 3,430
Installs on Request (90 days)
thefuck 3,430
Installs (365 days)
thefuck 7,019
Installs on Request (365 days)
thefuck 7,017
Fork me on GitHub