{"id":33014588,"url":"https://github.com/laggardkernel/zsh-thefuck","last_synced_at":"2026-01-23T16:23:14.507Z","repository":{"id":103436677,"uuid":"187353320","full_name":"laggardkernel/zsh-thefuck","owner":"laggardkernel","description":"ZSH plugin with thefuck initialization and useful functions","archived":false,"fork":false,"pushed_at":"2019-05-26T05:14:54.000Z","size":7,"stargazers_count":32,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-22T22:50:44.180Z","etag":null,"topics":["prezto","thefuck","zplugin","zsh","zsh-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laggardkernel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-18T12:08:49.000Z","updated_at":"2025-10-30T10:06:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ddeb83f-1efc-42a8-ba08-2d975f204240","html_url":"https://github.com/laggardkernel/zsh-thefuck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laggardkernel/zsh-thefuck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laggardkernel%2Fzsh-thefuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laggardkernel%2Fzsh-thefuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laggardkernel%2Fzsh-thefuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laggardkernel%2Fzsh-thefuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laggardkernel","download_url":"https://codeload.github.com/laggardkernel/zsh-thefuck/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laggardkernel%2Fzsh-thefuck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28695530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["prezto","thefuck","zplugin","zsh","zsh-plugin"],"created_at":"2025-11-13T18:00:20.531Z","updated_at":"2026-01-23T16:23:14.500Z","avatar_url":"https://github.com/laggardkernel.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"readme":"# thefuck\n\n[![License: MIT][license icon]][license]\n\nZSH plugin. Initialize `thefuck` with cache support, which reduce the loading\ntime dramatically. ( 120ms -\u003e 2ms )\n\nThis plugin is designed as a [Prezto][prezto] module, but it's also\ncompatible with other plugin managers.\n\n## Installation\n\n### [Zplugin][zplugin]\n\nThe only ZSH plugin manager solves the time-consuming init for\n`nvm`, `nodenv`, `pyenv`, `rvm`, `rbenv`, `thefuck`, `fasd`, etc,\nwith its amazing async [Turbo Mode][turbo mode].\n\n```zsh\nzplugin ice wait'1' lucid\nzplugin light laggardkernel/zsh-thefuck\n```\n\n### [Prezto][prezto]\n\nThe only framework does **optimizations** in plugins with sophisticated coding skill:\n- [refreshing `.zcompdump` every 20h][prezto zcompdump 1]\n- [compiling `.zcompdump` as bytecode in the background][prezto zcompdump 2]\n- [caching init script for fasd][prezto fasd]\n- saving `*env` startup time with [`init - --no-rehash` for `rbenv`, `pyenv`, `nodenv`][prezto *env]\n- [removing the horribly time-consuming `brew command` from `command-not-found`][prezto brew command]\n\n```zsh\nmkdir -p ${ZDOTDIR:-$HOME}/.zprezto/contrib 2\u003e/dev/null\ngit clone https://github.com/laggardkernel/zsh-thefuck.git ${ZDOTDIR:-$HOME}/.zprezto/contrib/thefuck\n```\n\n## Settings\n\n### Alias\nThe default alias for `thefuck` is `fuck`, you can customize the alias,\n\n```zsh\nzstyle \":prezto:module:thefuck\" alias \"damn\"\n```\n\n### Key bindings\nKey binding \u003ckbd\u003eEsc Esc\u003c/kbd\u003e is enabled to trigger function `fuck-command-line`\nto input the last rectified commands in the shell quickly. You can disable\nthis auto keybinding behavior and set your own keybinding with,\n\n```zsh\n# disable the default keybinding\nzstyle \":prezto:module:thefuck\" bindkey \"no\"\n\n# customize your own keybinding\nbindkey \"\\e\\e\" fuck-command-line\n```\n\n### Conf File Location for Freshness Comparison\nBy default, this module compares the freshness between `.zprezto` and the cache file. Once the `.zprezto` is modified and newer than the cache file, the\ncache will be regenerated.\n\nIf you're not using Prezto, you may want to change the conf file used in the\nfreshness comparison.\n\n```zsh\nzstyle \":prezto:runcom\" zpreztorc \"$HOME/.config/zsh/.zshrc\"\n```\n\n## Credit\n\nThe shortcut function `fuck-command-line` is borrowed from [oh-my-zsh/plugins/thefuck][omz-thefuck].\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2019 laggardkernel\n\n\n[license icon]: https://img.shields.io/badge/License-MIT-green.svg\n[license]: https://opensource.org/licenses/MIT\n\n[zplugin]: https://github.com/zdharma/zplugin\n[turbo mode]: https://github.com/zdharma/zplugin#turbo-mode-zsh--53\n\n[prezto]: https://github.com/sorin-ionescu/prezto\n[prezto zcompdump 1]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/modules/completion/init.zsh#L31-L41\n[prezto zcompdump 2]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/runcoms/zlogin#L9-L15\n[prezto fasd]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/modules/fasd/init.zsh#L22-L36\n[prezto *env]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/modules/python/init.zsh#L22\n[prezto brew command]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/modules/command-not-found/init.zsh\n\n[omz-thefuck]: https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/thefuck\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaggardkernel%2Fzsh-thefuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaggardkernel%2Fzsh-thefuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaggardkernel%2Fzsh-thefuck/lists"}