Requirements
- python (3.4+)
- pip
- python-dev
- Installation
On Ubuntu / Mint, install The Fuck with the following commands:
sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install thefuck
source bashrc
# vim ~/.bashrc
# 在最后添加如下命令
eval $(thefuck --alias)
# You can use whatever you want as an alias, like for Mondays:
eval $(thefuck --alias FUCK)
# source ~/.bashrc
本文介绍了一款名为 The Fuck 的 Python 工具,它能自动修正你在终端输入的错误命令。适用于 Ubuntu/Mint 系统,安装过程包括更新软件包列表、安装依赖项并使用 pip 安装 The Fuck。通过在 .bashrc 文件中添加 alias 命令,即可启用该工具。用户可以选择自定义 alias 名称。

2240

被折叠的 条评论
为什么被折叠?



