thefuck安装和使用(ubuntu)

系统环境(已测试可用):

ubuntu 18.04 lts (server或desktop),ubuntu 19.04(server或desktop)

sudo apt update
sudo apt install python3-dev python3-pip
sudo pip3 install thefuck

编辑文件 ~/.bashrc  (ps:给thefuck命令添加别名)

vim ~/.bashrc

在该文件末尾添加一行

eval "$(thefuck --alias)"

保存文件并退出(:wq), 然后执行更新

source  ~/.bashrc

此时 fuck 命令可用

猜你喜欢

转载自www.cnblogs.com/tu13/p/linux_tools_thefuck.html