1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-13 22:28:33 +00:00

Merge de0068aeb2b08c8070a46ef1f9e02baa192b9e8a into 9ecda9a399cab6a683eed27e5dd8de7b394c581c

This commit is contained in:
Sanket Dasgupta 2015-04-20 14:46:34 +00:00
commit 666df12487

View File

@ -1,8 +1,8 @@
# The Fuck [![Build Status](https://travis-ci.org/nvbn/thefuck.svg)](https://travis-ci.org/nvbn/thefuck)
Magnificent app which corrects your previous console command,
inspired by [@liamosaur](https://twitter.com/liamosaur/status/506975850596536320)
twit.
inspired by [@liamosaur](https://twitter.com/liamosaur/status/506975850596536320)'s
tweet.
Few examples:
@ -109,12 +109,12 @@ end
Or in your Powershell `$PROFILE` on Windows:
```powershell
function fuck {
function fuck {
$fuck = $(thefuck (get-history -count 1).commandline)
if($fuck.startswith("echo")) {
$fuck.substring(5)
}
else { iex "$fuck" }
if($fuck.startswith("echo")) {
$fuck.substring(5)
}
else { iex "$fuck" }
}
```