Fuck is a nice utility command line tool to correct last mistyped command to the terminal. Here is the flow to invoke fuck.
1. Mistype a command to the terminal
git brnch
2. Type fuck - this will suggest you the correct command.
fuck
3. Now press enter to issue the correct command.
git branch [enter/↑/↓/ctrl+c]
* masterHow to install fuck
on OSX
brew install thefuckon linux
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install thefuck
For more information refer
Website: https://github.com/nvbn/thefuck
0 Comments