mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 04:21:19 -08:00
feat(az): clear envvars
This commit is contained in:
parent
e2a86e8bd5
commit
85fb7611bc
|
@ -23,6 +23,9 @@ function global:Initialize-ModuleSupport {
|
||||||
$env:POSH_GIT_STATUS = Write-GitStatus -Status $global:GitStatus
|
$env:POSH_GIT_STATUS = Write-GitStatus -Status $global:GitStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$env:AZ_SUBSCRIPTION_NAME = $null
|
||||||
|
$env:AZ_SUBSCRIPTION_ID = $null
|
||||||
|
|
||||||
if (Get-Module -ListAvailable -Name "Az.Accounts") {
|
if (Get-Module -ListAvailable -Name "Az.Accounts") {
|
||||||
try {
|
try {
|
||||||
$subscription = Get-AzContext | Select-Object -ExpandProperty "Subscription" | Select-Object "Name", "Id"
|
$subscription = Get-AzContext | Select-Object -ExpandProperty "Subscription" | Select-Object "Name", "Id"
|
||||||
|
|
Loading…
Reference in a new issue