Skip to content

Commit 46c3b79

Browse files
use -Option AllScope to fix Windows PowerShell error (#1138)
* use -Option AllScope to fix Windows PowerShell error * fully qualify
1 parent 04823e6 commit 46c3b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ function Clear-Host {
1414
}
1515

1616
if (!$IsMacOS -or $IsLinux) {
17-
Set-Alias -Name clear -Value Clear-Host
17+
Microsoft.PowerShell.Utility\Set-Alias -Name clear -Value Clear-Host -Option AllScope
1818
}

0 commit comments

Comments
 (0)