mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +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:
|
||||
|
||||
```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
|
||||
|
Loading…
x
Reference in New Issue
Block a user