Giving a f*ck might actually save you time! 😂
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:
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:
Subscribe on Codú Community