From 2bd21d13ba53c0b1d317fc286860212d25116d39 Mon Sep 17 00:00:00 2001 From: Matt Kotsenas Date: Wed, 29 Jun 2016 14:03:10 -0400 Subject: [PATCH] Updated Shell aliases (markdown) --- Shell-aliases.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Shell-aliases.md b/Shell-aliases.md index 194cc0b..6590b1a 100644 --- a/Shell-aliases.md +++ b/Shell-aliases.md @@ -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