Add Oh My Posh completion

This commit is contained in:
Manuel Thalmann 2023-07-27 03:09:19 +02:00
parent 8b4082e6e1
commit 9be547d3a6

View file

@ -4,4 +4,9 @@ param($context)
[Context] $context = $context; [Context] $context = $context;
Write-Host "Configuring Oh My Posh!"; Write-Host "Configuring Oh My Posh!";
$context.AddPowerShellProfileStatement("999_Oh My Posh", 'oh-my-posh init pwsh | Invoke-Expression;');
$context.AddPowerShellProfileStatement(
"999_Oh My Posh",
@(
'oh-my-posh init pwsh | Invoke-Expression;',
"oh-my-posh completion powershell | Invoke-Expression;") -join [System.Environment]::NewLine);