thefuck
brew install thefuck
v3.32
MIT
Programmatically correct mistyped console commands
921
30-day installs · #1343
3.1k
90-day · #1338
14.5k
365-day · #1240
97.4k
★ GitHub stars · updated 2y ago
Runtime dependencies
GitHub topics
python
shell
Links
- https://github.com/nvbn/thefuck
- GitHub: nvbn/thefuck
- Brew formula source: Formula/t/thefuck.rb
Caveats
Add the following to your .bash_profile, .bashrc or .zshrc: eval $(thefuck --alias) For other shells, check https://github.com/nvbn/thefuck/wiki/Shell-aliases
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": "Add the following to your .bash_profile, .bashrc or .zshrc:\n\n eval $(thefuck --alias)\n\nFor other shells, check https://github.com/nvbn/thefuck/wiki/Shell-aliases\n",
"conflicts_with": [],
"dependencies": [
"python@3.14"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Programmatically correct mistyped console commands",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:26+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "thefuck",
"github_default_branch": "master",
"github_last_commit_at": "2024-07-19T14:56:13Z",
"github_readme_excerpt": "# The Fuck [![Version][version-badge]][version-link] [![Build Status][workflow-badge]][workflow-link] [![Coverage][coverage-badge]][coverage-link] [![MIT License][license-badge]](LICENSE.md)\n\n*The Fuck* is a magnificent app, inspired by a [@liamosaur](https://twitter.com/liamosaur/)\n[tweet](https://twitter.com/liamosaur/status/506975850596536320),\nthat corrects errors in previous console commands.\n\n\nIs *The Fuck* too slow? [Try the experimental instant mode!](#experimental-instant-mode)\n\n[![gif with examples][examples-link]][examples-link]\n\nMore examples:\n\n```bash\n\u279c apt-get install vim\nE: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)\nE: Unable to lock the administration directory (/var/lib/dpkg/), are you root?\n\n\u279c fuck\nsudo apt-get install vim [enter/\u2191/\u2193/ctrl+c]\n[sudo] password for nvbn:\nReading package lists... Done\n...\n```\n\n```bash\n\u279c git push\nfatal: The current branch master has no upstream branch.\nTo push the current branch and set the remote as upstream, use\n\n git push --set-upstream origin master\n\n\n\u279c fuck\ngit push --set-upstream origin master [enter/\u2191/\u2193/ctrl+c]\nCounting objects: 9, done.\n...\n```\n\n```bash\n\u279c puthon\nNo command \u0027puthon\u0027 found, did you mean:\n Command \u0027python\u0027 from package \u0027python-minimal\u0027 (main)\n Command \u0027python\u0027 from package \u0027python3\u0027 (main)\nzsh: command not found: puthon\n\n\u279c fuck\npython [enter/\u2191/\u2193/ctrl+c]\nPython 3.4.2 (default, Oct 8 2014, 13:08:17)\n...\n```\n\n```bash\n\u279c git brnch\ngit: \u0027brnch\u0027 is not a git command. See \u0027git --help\u0027.\n\nDid you mean this?\n branch\n\n\u279c fuck\ngit branch [enter/\u2191/\u2193/ctrl+c]\n* master\n```\n\n```bash\n\u279c lein rpl\n\u0027rpl\u0027 is not a task. See \u0027lein help\u0027.\n\nDid you mean this?\n repl\n\n\u279c fuck\nlein repl [enter/\u2191/\u2193/ctrl+c]\nnREPL server started on port 54848 on host 127.0.0.1 - nrepl://127.0.0.1:54848\nREPL-y 0.3.1\n...\n```\n\nIf you\u0027re not afraid of blindly running corrected commands, the\n`require_confirmation` [settings](#settings) option can be disabled:\n\n```bash\n\u279c apt-get install vim\nE: Could not open l",
"github_repo": "nvbn/thefuck",
"github_stars": 97390,
"github_topics": [
"python",
"shell"
],
"homepage": "https://github.com/nvbn/thefuck",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 921,
"installs_365d": 14454,
"installs_90d": 3093,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "thefuck",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 1343,
"rank_365d": 1240,
"rank_90d": 1338,
"raw_hash": "58777d1fe57d8d69",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/t/thefuck.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "3.32",
"versioned_formulae": [],
"why_use_this": null
}