mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
fix(pwsh): set working directory when starting process
This commit is contained in:
parent
f754826eb5
commit
3a15594410
|
@ -12,6 +12,7 @@ function global:Start-Utf8Process
|
||||||
$StartInfo.FileName = $filename
|
$StartInfo.FileName = $filename
|
||||||
$StartInfo.Arguments = $Arguments
|
$StartInfo.Arguments = $Arguments
|
||||||
$StartInfo.UseShellExecute = $false
|
$StartInfo.UseShellExecute = $false
|
||||||
|
$StartInfo.WorkingDirectory = $PWD #when UseShellExecute=false, workingDirectory=""
|
||||||
$StartInfo.CreateNoWindow = $true
|
$StartInfo.CreateNoWindow = $true
|
||||||
$_ = $Process.Start();
|
$_ = $Process.Start();
|
||||||
$_ = $Process.WaitForExit();
|
$_ = $Process.WaitForExit();
|
||||||
|
|
Loading…
Reference in a new issue