The F*ck is a magnificent app, that corrects errors in previous console commands.
Download Link: https://github.com/nvbn/thefuck
Review Link: https://www.codu.co/articles/the-f-ck-a-really-helpful-command-line-tool-1hc-d6if?ref=dailydev