# nvbn/thefuck

Magnificent app which corrects your previous console command.

Repository: https://github.com/nvbn/thefuck
Canonical: https://ross.abutalabs.com/products/thefuck
Language: Python
License: MIT
License Family: permissive
Topics: python, shell
Last push: 2024-07-19T14:56:13+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4165, "days_push": 775, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 97744, forks 3959 (observed 2026-08-28T04:12:23.636311+00:00)

## What it is
The Fuck is a Python-based command-line app that automatically corrects errors in your previous console command. When you type 'fuck' after a failed command, it suggests and runs a corrected version based on matching rules.

## Use cases
- fix typos in shell commands like 'puthon' instead of 'python'
- prepend sudo to commands that failed with permission errors
- add missing git flags like --set-upstream after a failed push
- correct misspelled subcommands in tools like git or lein
- automatically fix common command-line mistakes without retyping

## When to choose
- you frequently make typos or forget flags in terminal commands
- you want a shell-agnostic tool that works with bash, zsh, fish, and more
- you want an extensible tool with custom rules and third-party rule packages

## When to avoid
- you need a Windows-native shell experience (it targets macOS and Linux)
- you are uncomfortable with tools that can rerun commands automatically
- you prefer minimal shell setups without extra hooks or aliases

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: cli, developer-tools
- domain: developer-tools
- platform: python, cli
- tags: shell-correction, command-line-productivity, typo-fixing, command-line, automation, linux, macos

## Member repositories
- nvbn/thefuck (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:23.636311+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:12:29.803061+00:00, confidence not recorded.
  - readme: https://github.com/nvbn/thefuck (fetched 2026-08-28T04:12:23.636311+00:00, sha 8b679792dc63)
  - registry_pypi: https://pypi.org/pypi/thefuck/json (fetched 2026-08-28T17:34:22.265860+00:00, sha ab6563ca3a52)
- Data as of 2026-08-30T08:39:29.467469+00:00.
