百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

thefuck

> 编程语言
开源

这是一款伟大的应用程序,可修正您之前输入的控制台命令。

97.6K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

这是一款伟大的应用程序,可修正您之前输入的控制台命令。

The Fuck [![版本][version-badge]][version-link] [![构建状态][workflow-badge]][workflow-link] [![覆盖率][coverage-badge]][coverage-link] ![MIT 许可证][license-badge] The Fuck 是一款伟大的应用程序,灵感来自 @liamosaur 的 推文,它可以修正之前的控制台命令中的错误。 The Fuck 是否太慢了? 试试实验性的即时模式! [![带有示例的 GIF][examples-link]][examples-link] 更多示例: ```bash

➜ apt-get install vim E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

➜ fuck sudo apt-get install vim [enter/↑/↓/ctrl+c] [sudo] password for nvbn: Reading package lists... Done ... bash ➜ git push fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use

bash
git push --set-upstream origin master

➜ fuck git push --set-upstream origin master [enter/↑/↓/ctrl+c] Counting objects: 9, done. ... bash ➜ puthon No command 'puthon' found, did you mean: Command 'python' from package 'python-minimal' (main) Command 'python' from package 'python3' (main) zsh: command not found: puthon

➜ fuck python [enter/↑/↓/ctrl+c] Python 3.4.2 (default, Oct 8 2014, 13:08:17) ... bash ➜ git brnch git: 'brnch' is not a git command. See 'git --help'.

Did you mean this? branch

➜ fuck git branch [enter/↑/↓/ctrl+c]

  • master

bash ➜ lein rpl 'rpl' is not a task. See 'lein help'.

Did you mean this? repl

➜ fuck lein repl [enter/↑/↓/ctrl+c] nREPL server started on port 54848 on host 127.0.0.1 - nrepl://127.0.0.1:54848 REPL-y 0.3.1 ... ``` 如果您不害怕盲目运行已修正的命令,可以禁用 require_confirmation 设置 选项:

bash
➜ apt-get install vim
E: 无法打开锁文件 /var/lib/dpkg/lock - open (13: 权限被拒绝)
E: 无法锁定管理目录 (/var/lib/dpkg/), 是否为超级用户?

Issues· 461 开放

查看全部 Issues在 GitHub 打开
  • #1625

    功能: 添加智能命令建议

    更新于 2026年9月20日
  • #1623

    在每次运行时, thefuck_contrib_* 包都会先执行,然后再启用阀门

    更新于 2026年9月9日
  • #1622

    Poisoned THEFUCK_OUTPUT_LOG 会指导修正后的命令;未引号的输出标记会在别名 eval 中执行

    更新于 2026年9月9日
  • #1621

    会话记录日志已设为全世界可读 (默认 umask 为 022 时模式为 755)

    更新于 2026年9月9日
  • #1546

    没有名为 'distutils' 的模块

    更新于 2026年9月5日
  • #1527

    Python 3.13 中的 imp 导入已过时。

    更新于 2026年8月21日
  • #1618

    The Bleep - 这是一个快速、维护良好的 The Fuck 的继任者

    更新于 2026年8月20日
  • #1566

    这个项目不是维持这么久吗?

    更新于 2026年8月19日
  • #1531

    [错误]: open_command 字符串连接用户控制的输出,从而实现命令注入

    更新于 2026年8月19日
  • #1441

    在 nushell 中不起作用 (将其视为通用 shell)

    更新于 2026年8月19日

> 标签

Pythonpythonshell

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月29日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言