1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 12:06:04 +00:00

Update README.md

This commit is contained in:
Vladimir Iakovlev 2015-04-17 21:59:09 +02:00
parent 13c606afac
commit 636ce7c507

View File

@ -61,6 +61,14 @@ And add to `.bashrc` or `.zshrc`:
alias fuck='$(thefuck $(fc -ln -1))'
```
Or in `config.fish`:
```fish
function fuck
eval (thefuck (history | head -n1))
end
```
## How it works
The Fuck tries to match rule for the previous command, create new command