Pre-requisites: PIP, Python Install the package thefuck sudo apt install thefuck Add an alias for fuck to your shell thefuck -a >> ~/.bashrc