nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
85.44k stars 3.43k forks source link

Instant fuck mode #682

Open nvbn opened 7 years ago

nvbn commented 7 years ago

At the moment thefuck is a bit slow because it needs to rerun a previous command to get an output. But that can be fixed if we'll store the output in some sort of log file. That can be done with:

This method has some problems, the output will be different with different shells and locales. And we'll have combined output instead of separated stdout/stderr. So we need:

Related issues: #660, #576, #353.

nvbn commented 7 years ago

As a second step we can get previous commands from the log instead of the history, so we can gracefully handle typos in fuck like:

git brunch
fcuk
fuck # => git branch

Related: #453, #221

nvbn commented 7 years ago

In action:

gif