fuck
magnificent app which corrects your previous console command
TLDR
Set the fuck alias to thefuck tool
$ eval "$(thefuck --alias)"
Try to match a rule for the previous command
$ fuck
Confirm the first choice immediately (correct argument depends on level of annoyance)
$ fuck --[yes|yeah|hard]
Help
Seems like fuck alias isn't configured!
More details - https://github.com/nvbn/thefuck#manual-installation