File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,14 @@ $env:POWERLINE_COMMAND = "oh-my-posh"
55$env: CONDA_PROMPT_MODIFIER = $false
66
77# specific module support (disabled by default)
8- function Set-DefaultEnvValue {
9- [CmdletBinding ()]
10- param (
11- [Parameter (Mandatory = $true )]
12- [string ]
13- $Name
14- )
15-
16- $value = [System.Environment ]::GetEnvironmentVariable($Name )
17- if ($value -eq $null ) {
18- [System.Environment ]::SetEnvironmentVariable($Name , $false )
19- }
8+ $value = $env: AZ_ENABLED
9+ if ($null -eq $value ) {
10+ $env: AZ_ENABLED = $false
11+ }
12+ $value = $env: POSH_GIT_ENABLED
13+ if ($null -eq $value ) {
14+ $env: POSH_GIT_ENABLED = $false
2015}
21- Set-DefaultEnvValue (" AZ_ENABLED" )
22- Set-DefaultEnvValue (" POSH_GIT_ENABLED" )
2316
2417$global :PoshSettings = New-Object - TypeName PSObject - Property @ {
2518 Theme = " " ;
You can’t perform that action at this time.
0 commit comments