Skip to content

Commit

Permalink
Merge 16c1108 into 42853f4
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKotsenas committed Jun 27, 2016
2 parents 42853f4 + 16c1108 commit 4a25b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thefuck/shells/powershell.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
class Powershell(Generic):
def app_alias(self, fuck):
return 'function ' + fuck + ' { \n' \
' $fuck = $(thefuck (Get-History -Count 1).CommandLine)\n' \
' $fuck = $(thefuck (Get-History -Count 1).CommandLine);\n' \
' if (-not [string]::IsNullOrWhiteSpace($fuck)) {\n' \
' if ($fuck.StartsWith("echo")) { $fuck = $fuck.Substring(5) }\n' \
' else { iex "$fuck" }\n' \
' if ($fuck.StartsWith("echo")) { $fuck = $fuck.Substring(5); }\n' \
' else { iex "$fuck"; }\n' \
' }\n' \
'}\n'

Expand Down

0 comments on commit 4a25b7d

Please sign in to comment.