mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
parent
90f367eab3
commit
6deeb55fd2
|
@ -51,14 +51,14 @@ function Set-PoshPrompt {
|
||||||
$startInfo = New-Object System.Diagnostics.ProcessStartInfo
|
$startInfo = New-Object System.Diagnostics.ProcessStartInfo
|
||||||
$startInfo.FileName = Get-PoshCommand
|
$startInfo.FileName = Get-PoshCommand
|
||||||
$config = $global:PoshSettings.Theme
|
$config = $global:PoshSettings.Theme
|
||||||
$startInfo.Arguments = "-config $config -pwd $PWD -error $realLASTEXITCODE"
|
$startInfo.Arguments = "-config $config -pwd ""$PWD"" -error $realLASTEXITCODE"
|
||||||
$startInfo.Environment["TERM"] = "xterm-256color"
|
$startInfo.Environment["TERM"] = "xterm-256color"
|
||||||
$startInfo.CreateNoWindow = $true
|
$startInfo.CreateNoWindow = $true
|
||||||
$startInfo.StandardOutputEncoding = [System.Text.Encoding]::UTF8
|
$startInfo.StandardOutputEncoding = [System.Text.Encoding]::UTF8
|
||||||
$startInfo.RedirectStandardOutput = $true
|
$startInfo.RedirectStandardOutput = $true
|
||||||
$startInfo.UseShellExecute = $false
|
$startInfo.UseShellExecute = $false
|
||||||
if ($PWD.Provider.Name -eq "FileSystem") {
|
if ($PWD.Provider.Name -eq "FileSystem") {
|
||||||
$startInfo.WorkingDirectory = $PWD
|
$startInfo.WorkingDirectory = "$PWD"
|
||||||
}
|
}
|
||||||
$process = New-Object System.Diagnostics.Process
|
$process = New-Object System.Diagnostics.Process
|
||||||
$process.StartInfo = $startInfo
|
$process.StartInfo = $startInfo
|
||||||
|
|
Loading…
Reference in a new issue