From 04e9b9301c729b9ebb9c72041dd7104755e3bf7a Mon Sep 17 00:00:00 2001 From: jibedoubleve Date: Mon, 15 Jan 2024 16:25:44 +0100 Subject: [PATCH] (#470) Execute powershell command with '-noprofile' --- src/Lanceur/ReservedKeywords/ShellCommandAlias.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lanceur/ReservedKeywords/ShellCommandAlias.cs b/src/Lanceur/ReservedKeywords/ShellCommandAlias.cs index 435d5ef3..d324b4b4 100644 --- a/src/Lanceur/ReservedKeywords/ShellCommandAlias.cs +++ b/src/Lanceur/ReservedKeywords/ShellCommandAlias.cs @@ -26,7 +26,7 @@ public override async Task> ExecuteAsync(Cmdline cmdlin var psi = new ProcessStartInfo { FileName = "Powershell.exe", - Arguments = cmdline.Parameters, + Arguments = $"-noprofile {cmdline.Parameters}", CreateNoWindow = true, UseShellExecute = false, RedirectStandardOutput = true,