mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
parent
c57368ce7d
commit
598984b4cb
|
@ -27,7 +27,7 @@ if ($PSVersionTable.PSEdition -eq "Core" -and !$IsWindows) {
|
||||||
function Set-PoshContext {}
|
function Set-PoshContext {}
|
||||||
|
|
||||||
function Set-GitStatus {
|
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)')]
|
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSProvideCommentHelp', '', Justification='Variable used later(not in this scope)')]
|
||||||
$Global:GitStatus = Get-GitStatus
|
$Global:GitStatus = Get-GitStatus
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ if (Test-Path "::CONFIG::") {
|
||||||
function Set-PoshContext {}
|
function Set-PoshContext {}
|
||||||
|
|
||||||
function Set-GitStatus {
|
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)')]
|
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSProvideCommentHelp', '', Justification='Variable used later(not in this scope)')]
|
||||||
$Global:GitStatus = Get-GitStatus
|
$Global:GitStatus = Get-GitStatus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue