Add Oh My Posh to windows
This commit is contained in:
parent
f70513f234
commit
40788f3d98
3 changed files with 15 additions and 0 deletions
7
scripts/Windows/Config/Oh My Posh/Install.ps1
Normal file
7
scripts/Windows/Config/Oh My Posh/Install.ps1
Normal 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;');
|
|
@ -63,6 +63,7 @@ function Invoke-WindowsInstallation([Context] $context)
|
||||||
. "$softwarePath/Thunderbird/Install.ps1" $context;
|
. "$softwarePath/Thunderbird/Install.ps1" $context;
|
||||||
. "$softwarePath/posh-git/Install.ps1" $context;
|
. "$softwarePath/posh-git/Install.ps1" $context;
|
||||||
. "$softwarePath/Terminal-Icons/Install.ps1" $context;
|
. "$softwarePath/Terminal-Icons/Install.ps1" $context;
|
||||||
|
. "$softwarePath/Oh My Posh/Install.ps1" $context;
|
||||||
$context.Set("MachineWideSoftware", 1, "DWord");
|
$context.Set("MachineWideSoftware", 1, "DWord");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
7
scripts/Windows/Software/Oh My Posh/Install.ps1
Normal file
7
scripts/Windows/Software/Oh My Posh/Install.ps1
Normal 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;
|
Loading…
Reference in a new issue