mirror of
https://github.com/nvbn/thefuck.git
synced 2025-11-01 07:32:09 +00:00
Updated Shell aliases (markdown)
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user