这是一款伟大的应用程序,可修正您之前输入的控制台命令。
➜ 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
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]
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 设置 选项:
➜ apt-get install vim
E: 无法打开锁文件 /var/lib/dpkg/lock - open (13: 权限被拒绝)
E: 无法锁定管理目录 (/var/lib/dpkg/), 是否为超级用户?功能: 添加智能命令建议
在每次运行时, thefuck_contrib_* 包都会先执行,然后再启用阀门
Poisoned THEFUCK_OUTPUT_LOG 会指导修正后的命令;未引号的输出标记会在别名 eval 中执行
会话记录日志已设为全世界可读 (默认 umask 为 022 时模式为 755)
没有名为 'distutils' 的模块
Python 3.13 中的 imp 导入已过时。
The Bleep - 这是一个快速、维护良好的 The Fuck 的继任者
这个项目不是维持这么久吗?
[错误]: open_command 字符串连接用户控制的输出,从而实现命令注入
在 nushell 中不起作用 (将其视为通用 shell)