← All repositories

nvbnthefuck

95,503 stars3,841 forksPythonmit1 view

Thefuck

Features

  • Command Correction ToolsThe tool detects errors in previous console commands automatically and applies built-in or user-defined correction rules to fix mistakes within the command history.
  • Command Error Correction EnginesEvaluates failed command exit codes and output streams against a library of modular scripts to identify specific syntax errors.
  • Command Correction EnginesA modular architecture that allows developers to define custom patterns and logic for identifying and fixing recurring command-line mistakes.
  • Command-Line Correction EnginesA rule-based automation tool that intercepts failed terminal commands and applies corrective logic to resolve syntax errors or typos.
  • Terminal Error Recovery ToolsAutomatically identifying and fixing mistyped shell commands to maintain developer flow without manually retyping or debugging syntax errors.
  • Command Interception HooksHooks into the shell environment by aliasing commands to trigger a background process that inspects and modifies the command history.
  • Custom Correction RulesThe tool enables users to define custom correction logic using scripts to handle specific command-line errors or automate repetitive tasks.
  • Shell Alias ConfigurationsThe tool maps common terminal commands to automated correction utilities to enable rapid command correction across various shell environments.
  • Extensible Shell AutomationBuilding custom rule-based logic to intercept and resolve specific command-line failures tailored to unique project or environment requirements.
  • Rule-Based Plugin SystemsLoads external rule definitions from a designated directory to allow users to extend functionality without modifying the core engine.
  • Command Re-execution UtilitiesInjects corrected command strings back into the shell's input buffer to execute the intended operation after a failure occurs.
  • CLI Plugin SystemsThe tool extends correction capabilities by integrating external packages that provide specialized rules for specific command-line tools, environments, or unique terminal workflows.
  • Workflow Optimization ToolsReducing friction in the terminal by minimizing the time spent correcting trivial input mistakes during daily command-line operations.