mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
Add Powershell fuck command to README
Allows usage of fuck command in Windows Powershell
This commit is contained in:
parent
ef20a68d56
commit
9753e24b23
12
README.md
12
README.md
@ -106,6 +106,18 @@ function fuck
|
||||
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.
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user