Skip to content

Commit 59dde09

Browse files
Merge pull request #156 from PMC/main
Fixes to that if there is an Get-Theme_Override then call that functi…
2 parents 87c4c63 + c9766c4 commit 59dde09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Microsoft.PowerShell_profile.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,11 @@ $scriptblock = {
608608
}
609609
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock $scriptblock
610610

611-
oh-my-posh init pwsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/cobalt2.omp.json | Invoke-Expression
611+
if (Get-Command -Name "Get-Theme_Override" -ErrorAction SilentlyContinue){
612+
Get-Theme_Override;
613+
} else {
614+
oh-my-posh init pwsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/cobalt2.omp.json | Invoke-Expression
615+
}
612616

613617
if (Get-Command zoxide -ErrorAction SilentlyContinue) {
614618
Invoke-Expression (& { (zoxide init --cmd z powershell | Out-String) })

0 commit comments

Comments
 (0)