id = "thefuck" name = "The Fuck" homepage = "https://github.com/nvbn/thefuck" description = "A command-line tool that corrects errors in previous console commands." executables = ["thefuck", "fuck"] [dotfiles] # https://github.com/nvbn/thefuck/blob/master/README.md — settings.py is read # from $XDG_CONFIG_HOME/thefuck (defaulting to ~/.config), and custom rules are # stored in its rules/ subdirectory. paths = [ "[configHome]/thefuck/settings.py", "[configHome]/thefuck/rules/", ] secret = [] side_effect = false [commands] format = 1 label = "Fix previous command" description = "Run thefuck on a command line to correct it. Alias printing, shell logger and experimental instant mode are left out." quality = "ai-draft" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "help" kind = "help" revision = "thefuck --help (local)" evidence = """ 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 """ [[commands.field]] id = "yes" label = "Run without confirmation" type = "boolean" option = ["--yes", "-y"] effect = "exec" sources = ["help"] [[commands.field]] id = "repeat" label = "Repeat on failure" type = "boolean" option = ["--repeat", "-r"] sources = ["help"] [[commands.field]] id = "debug" label = "Debug output" type = "boolean" option = ["--debug", "-d"] sources = ["help"] [[commands.field]] id = "command" label = "Command to fix" description = "The command line that should be corrected." type = "string" position = 0 multiple = true sources = ["help"] [[commands.task]] id = "fix" label = "Fix a command" fields = ["command", "repeat", "debug"] required = ["command"] [[commands.group]] id = "basic" label = "Basic" fields = ["command", "repeat", "yes", "debug"]