thefuck 安装

thefuck 安装

Mac :
brew install thefuck

Ubuntu :
sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install thefuck

将此命令放在.bash_profile.bashrc、.zshrc或其他启动脚本中:

eval $(thefuck --alias)
# You can use whatever you want as an alias, like for Mondays:
eval $(thefuck --alias FUCK)

不要忘记 source 文件名称

Mac 遇到的安装问题

一 、执行 brew install thefuck 遇到 Updating Homebrew...不动问题

解决方法: 按 CTRL + C 取消本次更新操作 这个方法是临时的、一次性的
永久解决方法 镜像源进行加速 参考文章 https://learnku.com/articles/18908

二 、已经安装,没有链接问题

Warning: thefuck 3.18 is already installed, it's just not linked.
You can use `brew link thefuck` to link this version.

解决方法

brew link thefuck

过程中可能出现这个报错

Linking /usr/local/Cellar/thefuck/3.18...
Error: Could not symlink .
/usr/local/opt is not writable.

解决方法:更改 /usr/local 权限

sudo chmod -R g+w /usr/local

这就完事了,就是尽情的fuck了!!!

注:本篇只是实际操作于mac,其他的系统请参考官网 thefuck github 链接

以上

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值