mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
parent
34e8154b71
commit
00260e1c72
|
@ -376,13 +376,19 @@ Example:
|
|||
}
|
||||
|
||||
if ($global:_ompAzure) {
|
||||
try {
|
||||
$env:POSH_AZURE_SUBSCRIPTION = Get-AzContext | ConvertTo-Json
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
|
||||
if ($global:_ompPoshGit) {
|
||||
try {
|
||||
$global:GitStatus = Get-GitStatus
|
||||
$env:POSH_GIT_STATUS = $global:GitStatus | ConvertTo-Json
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
|
||||
Set-PoshContext
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue