命令行自动纠错命令:fuck

thefuck

thefuck是github上一个项目,可纠正命令中的错误

打开链接查看神奇效果
在这里插入图片描述

安装与配置

以我所在的Ubuntu服务器为例:

sudo apt install thefuck
vim ~/.bashrc
#文件末加入下面语句,给thefuck取别名fuck
eval "$(thefuck --alias fuck)"
#使配置生效
source ~/.bashrc

官方推荐的安装方法:

On macOS or Linux, you can install The Fuck via Homebrew:

brew install thefuck
On Ubuntu / Mint, install The Fuck with the following commands:

sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
pip3 install thefuck --user
On FreeBSD, install The Fuck with the following commands:

pkg install thefuck
On ChromeOS, install The Fuck using chromebrew with the following command:

crew install thefuck
On other systems, install The Fuck by using pip:

pip install thefuck
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值