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

Updated Shell aliases (markdown)

Matt Kotsenas 2016-06-29 14:03:10 -04:00
parent 653cfb5c2d
commit 2bd21d13ba

@ -24,14 +24,7 @@ eval (thefuck --alias | tr '\n' ';')
Put this in your Powershell `$PROFILE` on Windows:
```powershell
function fuck {
$fuck = $(thefuck (Get-History -Count 1).CommandLine)
if (-not [string]::IsNullOrWhiteSpace($fuck))
{
if ($fuck.StartsWith("echo")) { $fuck = $fuck.Substring(5) }
else { iex "$fuck" }
}
}
iex "$(thefuck --alias)"
```
# tcsh