System Environment (tested available):
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
Edit the file ~ / .bashrc (ps: thefuck command to add an alias)
vim ~/.bashrc
Add a line at the end of the file
eval "$(thefuck --alias)"
Save the file and exit (: wq), then perform the update
source ~/.bashrc
At this time, fuck commands available