1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-12 07:59:01 +00:00

Updating PowerShell alias

Matt Kotsenas 2016-01-29 16:57:28 -08:00
parent 45f12db59b
commit bfc27cfa91

@ -25,11 +25,12 @@ Put this 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 (-not [string]::IsNullOrWhiteSpace($fuck))
$fuck.substring(5) {
if ($fuck.StartsWith("echo")) { $fuck = $fuck.Substring(5) }
else { iex "$fuck" }
} }
else { iex "$fuck" }
} }
``` ```