mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
df52ccdb6a
commit
d328c81932
|
@ -13,12 +13,12 @@ $env:POWERLINE_COMMAND = "oh-my-posh"
|
||||||
$env:CONDA_PROMPT_MODIFIER = $false
|
$env:CONDA_PROMPT_MODIFIER = $false
|
||||||
|
|
||||||
# specific module support (disabled by default)
|
# specific module support (disabled by default)
|
||||||
$value = $env:AZ_ENABLED
|
$omp_value = $env:AZ_ENABLED
|
||||||
if ($null -eq $value) {
|
if ($null -eq $omp_value) {
|
||||||
$env:AZ_ENABLED = $false
|
$env:AZ_ENABLED = $false
|
||||||
}
|
}
|
||||||
$value = $env:POSH_GIT_ENABLED
|
$omp_value = $env:POSH_GIT_ENABLED
|
||||||
if ($null -eq $value) {
|
if ($null -eq $omp_value) {
|
||||||
$env:POSH_GIT_ENABLED = $false
|
$env:POSH_GIT_ENABLED = $false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,11 +30,14 @@ $global:PoshSettings = New-Object -TypeName PSObject -Property @{
|
||||||
# used to detect empty hit
|
# used to detect empty hit
|
||||||
$global:omp_lastHistoryId = -1
|
$global:omp_lastHistoryId = -1
|
||||||
|
|
||||||
$config = "::CONFIG::"
|
$omp_config = "::CONFIG::"
|
||||||
if (Test-Path $config) {
|
if (Test-Path $omp_config) {
|
||||||
$global:PoshSettings.Theme = (Resolve-Path -Path $config).ProviderPath
|
$global:PoshSettings.Theme = (Resolve-Path -Path $omp_config).ProviderPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Remove-Variable $omp_value -Confirm:$false
|
||||||
|
Remove-Variable $omp_config -Confirm:$false
|
||||||
|
|
||||||
function global:Set-PoshContext {}
|
function global:Set-PoshContext {}
|
||||||
|
|
||||||
function global:Get-PoshContext {
|
function global:Get-PoshContext {
|
||||||
|
|
Loading…
Reference in a new issue