From c15cffa7144a742b950a680a75b2f842770a8e4f Mon Sep 17 00:00:00 2001 From: Tyler James Leonhardt Date: Thu, 19 Dec 2019 15:28:52 -0800 Subject: [PATCH 1/2] use -Option AllScope to fix Windows PowerShell error --- module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 b/module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 index 4aa646942..b82886e3d 100644 --- a/module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 +++ b/module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 @@ -14,5 +14,5 @@ function Clear-Host { } if (!$IsMacOS -or $IsLinux) { - Set-Alias -Name clear -Value Clear-Host + Set-Alias -Name clear -Value Clear-Host -Option AllScope } From ca74ec269c2ddf37e4b6b2000296b6f3066fdf95 Mon Sep 17 00:00:00 2001 From: Tyler James Leonhardt Date: Thu, 19 Dec 2019 15:31:42 -0800 Subject: [PATCH 2/2] fully qualify --- module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 b/module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 index b82886e3d..50e9d4503 100644 --- a/module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 +++ b/module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1 @@ -14,5 +14,5 @@ function Clear-Host { } if (!$IsMacOS -or $IsLinux) { - Set-Alias -Name clear -Value Clear-Host -Option AllScope + Microsoft.PowerShell.Utility\Set-Alias -Name clear -Value Clear-Host -Option AllScope }