diff --git a/base/profile.d/Style.ps1 b/base/profile.d/Style.ps1 index 7b7f354..aedd15b 100644 --- a/base/profile.d/Style.ps1 +++ b/base/profile.d/Style.ps1 @@ -1,2 +1,6 @@ Get-Command Set-PSReadLineKeyHandler | ForEach-Object { Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete } -Get-Command Set-Theme -ErrorAction SilentlyContinue | ForEach-Object { Set-Theme Paradox } +if( Get-Command Set-PoshPrompt -ErrorAction SilentlyContinue ) { + $local:poshPrompt = Join-Path $HOME ".oh-my-posh.omp.json" + if( -not (Test-Path $poshPrompt) ) { $poshPrompt = "powerlevel10k_classic" } + Set-PoshPrompt -Theme $poshPrompt +} elseif( Get-Command Set-Theme -ErrorAction SilentlyContinue ) { Set-Theme Paradox } diff --git a/base/src/config.files.json b/base/src/config.files.json index dae60a6..0653ace 100644 --- a/base/src/config.files.json +++ b/base/src/config.files.json @@ -6,6 +6,7 @@ "#vi" ], "vi": "~/.virc", + "omp": "~/.oh-my-posh.omp.json", "zshrc": "~/.zshrc", "zsys": "/etc/zsys.conf", "shrc": "~/.shrc",