All apps/The Fuck

The Fuck

thefuck

A command-line tool that corrects errors in previous console commands.

Runs as thefuck, fuck|macOS, Linux, Windows|github.com

Command form

ai-draft · 1 task · 4 fields

Run thefuck on a command line to correct it. Alias printing, shell logger and experimental instant mode are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui thefuck
Fix previous commandExample values, fixed in this page — nothing here reaches a terminal
Basic
Command to fix*
string
Repeat on failure
--repeat
Debug output
--debug
TasksEach one presets the form for one job
Fix a command
commandrepeatdebug
ParametersOnly these flags are editable in the form
Run without confirmation
boolean
--yes-y
Repeat on failure
boolean
--repeat-r
Debug output
boolean
--debug-d
Command to fix
The command line that should be corrected.
string · positional 0 · repeatable
SourcesEvery flag above is checked against these
help
command command that should be fixed -y, --yes, --yeah, --hard execute fixed command without confirmation -r, --repeat repeat on failure -d, --debug enable debug output
helpthefuck --help (local)

Before it fills your prompt, Otty checks the installed thefuck against its version. A form that does not match your version is not offered.