diff --git a/thefuck/shells/powershell.py b/thefuck/shells/powershell.py index fd0095ff..160a05c4 100644 --- a/thefuck/shells/powershell.py +++ b/thefuck/shells/powershell.py @@ -4,10 +4,10 @@ from .generic import Generic 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'