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

13 lines
369 B
PowerShell
Raw Normal View History

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