HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fuck — Corrects your previous console command. More information: <https://github.com/nvbn/thefuck>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
fuckcommandpreviouscorrectscliconsoleyour

Problem

How to use the fuck command: Corrects your previous console command. More information: <https://github.com/nvbn/thefuck>.

Solution

fuck — Corrects your previous console command. More information: <https://github.com/nvbn/thefuck>.

Set the fuck alias to thefuck tool:
eval "$(thefuck --alias)"


Try to match a rule for the previous command:
fuck


Confirm the first choice immediately (correct argument depends on level of annoyance):
fuck --{{yes|yeah|hard}}

Code Snippets

Set the `fuck` alias to `thefuck` tool

eval "$(thefuck --alias)"

Try to match a rule for the previous command

fuck

Confirm the first choice immediately (correct argument depends on level of annoyance)

fuck --{{yes|yeah|hard}}

Context

tldr-pages: common/fuck

Revisions (0)

No revisions yet.