Add a script for installing Oh My Posh
This commit is contained in:
parent
7fed854044
commit
1be771628b
3 changed files with 50 additions and 0 deletions
scripts/Windows/Software/Oh My Posh
21
scripts/Windows/Software/Oh My Posh/Manage.ps1
Normal file
21
scripts/Windows/Software/Oh My Posh/Manage.ps1
Normal file
|
@ -0,0 +1,21 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
param(
|
||||
[scriptblock] $Installer
|
||||
)
|
||||
|
||||
Install-WingetPackage JanDeDobbeleer.OhMyPosh;
|
||||
& $Installer -Action ([InstallerAction]::Configure);
|
||||
} `
|
||||
-Configurator {
|
||||
. "$PSScriptRoot/../../../Common/Software/Oh My Posh/Manage.ps1" `
|
||||
-Action ([InstallerAction]::Configure);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue