mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 10:11:14 +00:00
Updated Shell aliases (markdown)
parent
653cfb5c2d
commit
2bd21d13ba
@ -24,14 +24,7 @@ eval (thefuck --alias | tr '\n' ';')
|
|||||||
Put this in your Powershell `$PROFILE` on Windows:
|
Put this in your Powershell `$PROFILE` on Windows:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
function fuck {
|
iex "$(thefuck --alias)"
|
||||||
$fuck = $(thefuck (Get-History -Count 1).CommandLine)
|
|
||||||
if (-not [string]::IsNullOrWhiteSpace($fuck))
|
|
||||||
{
|
|
||||||
if ($fuck.StartsWith("echo")) { $fuck = $fuck.Substring(5) }
|
|
||||||
else { iex "$fuck" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# tcsh
|
# tcsh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user