Correct your incorrectly typed commands in terminal - Fuck

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]
* master

How to install fuck

on OSX

brew install thefuck

on linux

sudo apt update 
sudo apt install python3-dev python3-pip python3-setuptools 
sudo pip3 install thefuck


For more information refer

Website: https://github.com/nvbn/thefuck


Post a Comment

0 Comments