The F*ck - A Really Helpful Command Line Tool π»
Niall Maher
Posted on October 7, 2020
Giving a f*ck might actually save you time! π
If you want a video version of this guide:
Or else continue reading. π§π»βπ»
This tool makes me laugh and makes me faster with the command line tools so it's a win-win.
Today we will look at "The F*ck" which is a super helpful CLI tool that lets you use those suggested commands in the terminal without having to retype everything again.
Have you ever had that frustrating moment where you type a wrong command, something like grabbing a new branch with git?
But git from that nice suggestion there already knew what we meant so instead we think "f*ck", and start to type out what we really meant. But thanks to this CLI tool we can just type fuck
and it gives us the suggested command and execute it for us.
So this works with a variety of tools and has a really good matching sequence which you can check out in more detail in their documentation here.
If you are using a Zsh
terminal like myself you may need to add an alias to get it working as I have above (or if you want something a little more suitable for work it's always an option too but there's no fun in not typing "fuck" as you mistype).
You can install it on Windows with pip
and there are a few alternative install guides for Mac and Linux in the docs here:
π https://github.com/nvbn/thefuck
What do you think of The Fuck?
Are you enjoying adding it to your workflow as much as me?
This video was inspired by Daan's awesome article here:
π https://levelup.gitconnected.com/7-command-line-tools-that-make-your-life-easier-d69c38850d6c
Subscribe on CodΓΊ Community
Posted on October 7, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.