Add Oh My Posh to windows

This commit is contained in:
Manuel Thalmann 2023-07-27 02:57:35 +02:00
parent f70513f234
commit 40788f3d98
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/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;');

View file

@ -63,6 +63,7 @@ function Invoke-WindowsInstallation([Context] $context)
. "$softwarePath/Thunderbird/Install.ps1" $context;
. "$softwarePath/posh-git/Install.ps1" $context;
. "$softwarePath/Terminal-Icons/Install.ps1" $context;
. "$softwarePath/Oh My Posh/Install.ps1" $context;
$context.Set("MachineWideSoftware", 1, "DWord");
}

View file

@ -0,0 +1,7 @@
#!/bin/pwsh
param($context);
. "$PSScriptRoot/../../Scripts/Context.ps1";
[Context] $context = $context;
winget install --accept-source-agreements --accept-package-agreements -s winget JanDeDobbeleer.OhMyPosh;
. "$PSScriptRoot/../../Config/Oh My Posh/Install.ps1" $context;