1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-30 14:44:05 +00:00

Merge pull request #49 from deevus/deevus-patch-1

Add Powershell fuck command to README
This commit is contained in:
Vladimir Iakovlev
2015-04-20 15:27:26 +02:00

View File

@@ -106,6 +106,18 @@ function fuck
end end
``` ```
Or in your Powershell `$PROFILE` on Windows:
```powershell
function fuck {
$fuck = $(thefuck (get-history -count 1).commandline)
if($fuck.startswith("echo")) {
$fuck.substring(5)
}
else { iex "$fuck" }
}
```
Changes will available only in a new shell session. Changes will available only in a new shell session.