1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-20 01:28:56 +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) # 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, Magnificent app which corrects your previous console command,
inspired by [@liamosaur](https://twitter.com/liamosaur/status/506975850596536320) inspired by [@liamosaur](https://twitter.com/liamosaur/status/506975850596536320)'s
twit. tweet.
Few examples: Few examples:
@ -109,12 +109,12 @@ end
Or in your Powershell `$PROFILE` on Windows: Or in your Powershell `$PROFILE` on Windows:
```powershell ```powershell
function fuck { function fuck {
$fuck = $(thefuck (get-history -count 1).commandline) $fuck = $(thefuck (get-history -count 1).commandline)
if($fuck.startswith("echo")) { if($fuck.startswith("echo")) {
$fuck.substring(5) $fuck.substring(5)
} }
else { iex "$fuck" } else { iex "$fuck" }
} }
``` ```