PortValhalla/scripts/Windows/Config/Oh My Posh/Install.ps1

13 lines
369 B
PowerShell

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