12

The F*ck - A Really Helpful Command Line Tool

Giving a f*ck might save you time!

This tool makes me laugh and makes me faster with the command line tools, so it's a win-win.

If you want a video version of this guide where I talk a bit more about the fun:

Or else continue reading. 🧑🏻‍💻

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 type fuck, and it gives us the suggested command and executes 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:

🔗 github.com/nvbn/thefuck

What do you think of The Fuck?

Are you enjoying adding it to your workflow as much as me?

Follow me on Twitter

Subscribe on Codú Community

ToolsWeb DevCommand LineProductivityTerminal
Avatar for Niall Maher

Written by Niall Maher

Founder of Codú - The web developer community! I've worked in nearly every corner of technology businesses: Lead Developer, Software Architect, Product Manager, CTO, and now happily a Founder.

Discussion (10)

Hey! 👋

Got something to say?

or to leave a comment.

Avatar for QuintenvwQuintenvw

Sadly enough it's no longer maintained. I couldn't find any solid alternatives. Thanks for the article though!

1
Avatar for Niall MaherNiall Maher
AUTHOR

Fuck...

0
Avatar for ITCJ96ITCJ96

So fucking worthy🤣. Thanks brother

1
Avatar for Niall MaherNiall Maher
AUTHOR

Welcome! 😉

0
Avatar for Pedro PinheiroPedro Pinheiro

Hey that's pretty nice xD

1
Avatar for Niall MaherNiall Maher
AUTHOR

It's so fucking useful too! 🙈

0
Avatar for AreaArea

牛逼!nb

1
Avatar for Niall MaherNiall Maher
AUTHOR

You're awesome!

0
Avatar for Muhsin AzmalMuhsin Azmal

Just want to say, WHAT THE FUCK!🤣

2
Avatar for Niall MaherNiall Maher
AUTHOR

😂 That's the spirit!

1