mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
d789b3c252
commit
dbee7edde7
|
@ -5,21 +5,14 @@ $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)
|
||||||
function Set-DefaultEnvValue {
|
$value = $env:AZ_ENABLED
|
||||||
[CmdletBinding()]
|
if ($null -eq $value) {
|
||||||
param (
|
$env:AZ_ENABLED = $false
|
||||||
[Parameter(Mandatory = $true)]
|
}
|
||||||
[string]
|
$value = $env:POSH_GIT_ENABLED
|
||||||
$Name
|
if ($null -eq $value) {
|
||||||
)
|
$env:POSH_GIT_ENABLED = $false
|
||||||
|
|
||||||
$value = [System.Environment]::GetEnvironmentVariable($Name)
|
|
||||||
if ($value -eq $null) {
|
|
||||||
[System.Environment]::SetEnvironmentVariable($Name, $false)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Set-DefaultEnvValue("AZ_ENABLED")
|
|
||||||
Set-DefaultEnvValue("POSH_GIT_ENABLED")
|
|
||||||
|
|
||||||
$global:PoshSettings = New-Object -TypeName PSObject -Property @{
|
$global:PoshSettings = New-Object -TypeName PSObject -Property @{
|
||||||
Theme = "";
|
Theme = "";
|
||||||
|
|
Loading…
Reference in a new issue