mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
parent
c57368ce7d
commit
598984b4cb
|
@ -27,7 +27,7 @@ if ($PSVersionTable.PSEdition -eq "Core" -and !$IsWindows) {
|
|||
function Set-PoshContext {}
|
||||
|
||||
function Set-GitStatus {
|
||||
if (Get-Command -Name "Get-GitStatus" -ErrorAction SilentlyContinue) {
|
||||
if (Get-Module -Name "posh-git") {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSProvideCommentHelp', '', Justification='Variable used later(not in this scope)')]
|
||||
$Global:GitStatus = Get-GitStatus
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ if (Test-Path "::CONFIG::") {
|
|||
function Set-PoshContext {}
|
||||
|
||||
function Set-GitStatus {
|
||||
if (Get-Command -Name "Get-GitStatus" -ErrorAction SilentlyContinue) {
|
||||
if (Get-Module -Name "posh-git") {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSProvideCommentHelp', '', Justification='Variable used later(not in this scope)')]
|
||||
$Global:GitStatus = Get-GitStatus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue