mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
ae2042abcb
commit
894b84fa85
|
@ -51,10 +51,11 @@ function Set-PoshPrompt {
|
|||
|
||||
$config = ""
|
||||
if (Test-Path "$PSScriptRoot/themes/$Theme.omp.json") {
|
||||
$config = "$PSScriptRoot/themes/$Theme.omp.json"
|
||||
$path = "$PSScriptRoot/themes/$Theme.omp.json"
|
||||
$config = (Resolve-Path -Path $path).ProviderPath
|
||||
}
|
||||
elseif (Test-Path $Theme) {
|
||||
$config = (Resolve-Path -Path $Theme).Path
|
||||
$config = (Resolve-Path -Path $Theme).ProviderPath
|
||||
}
|
||||
else {
|
||||
$config = "$PSScriptRoot/themes/jandedobbeleer.omp.json"
|
||||
|
|
|
@ -13,7 +13,7 @@ $global:omp_lastHistoryId = -1
|
|||
|
||||
$config = "::CONFIG::"
|
||||
if (Test-Path $config) {
|
||||
$global:PoshSettings.Theme = (Resolve-Path -Path $config).Path
|
||||
$global:PoshSettings.Theme = (Resolve-Path -Path $config).ProviderPath
|
||||
}
|
||||
|
||||
function global:Set-PoshContext {}
|
||||
|
|
Loading…
Reference in a new issue