mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
parent
59d7a0eeef
commit
8986c3b621
|
@ -100,8 +100,8 @@ Edit `$PROFILE` in your preferred PowerShell version and add the following lines
|
|||
$startInfo.StandardOutputEncoding = [System.Text.Encoding]::UTF8
|
||||
$startInfo.RedirectStandardOutput = $true
|
||||
$startInfo.UseShellExecute = $false
|
||||
if ($PWD.Provider.Name -eq "FileSystem") {
|
||||
$startInfo.WorkingDirectory = "$PWD"
|
||||
if ($PWD.Provider.Name -eq 'FileSystem') {
|
||||
$startInfo.WorkingDirectory = $PWD.ProviderPath
|
||||
}
|
||||
$process = New-Object System.Diagnostics.Process
|
||||
$process.StartInfo = $startInfo
|
||||
|
|
|
@ -58,8 +58,8 @@ function Set-PoshPrompt {
|
|||
$startInfo.StandardOutputEncoding = [System.Text.Encoding]::UTF8
|
||||
$startInfo.RedirectStandardOutput = $true
|
||||
$startInfo.UseShellExecute = $false
|
||||
if ($PWD.Provider.Name -eq "FileSystem") {
|
||||
$startInfo.WorkingDirectory = "$PWD"
|
||||
if ($PWD.Provider -eq 'FileSystem') {
|
||||
$startInfo.WorkingDirectory = $PWD.ProviderPath
|
||||
}
|
||||
$process = New-Object System.Diagnostics.Process
|
||||
$process.StartInfo = $startInfo
|
||||
|
|
Loading…
Reference in a new issue