Make software name available in scripts

This commit is contained in:
Manuel Thalmann 2024-09-23 02:10:42 +02:00
commit 5ae07886c8
15 changed files with 116 additions and 50 deletions
scripts/Common/Software
Oh My Posh
aliae
zoxide

View file

@ -10,9 +10,11 @@ param (
Start-SoftwareInstaller @PSBoundParameters `
-Configurator {
param([string] $Name)
Add-PowerShellProfileStatement `
-System `
-Category "oh-my-posh" `
-Category "$Name" `
-Script (
@(
"# Oh My Posh!",

View file

@ -9,6 +9,7 @@ param(
Start-SoftwareInstaller @PSBoundParameters `
-Configurator {
param([string] $Name)
. "$PSScriptRoot/Constants.ps1";
$pathExpression = Get-GlobalConfigExpression;
$path = Get-GlobalConfigPath;
@ -17,7 +18,7 @@ Start-SoftwareInstaller @PSBoundParameters `
Add-PowerShellProfileStatement `
-System `
-Category "aliae" `
-Category $Name `
-Script (
@(
{

View file

@ -8,12 +8,14 @@ param(
Start-SoftwareInstaller @PSBoundParameters `
-Configurator {
param([string] $Name)
Add-PowerShellProfileStatement `
-System `
-Category "zoxide" `
-Category "$Name" `
-Script (
@(
"# zoxide",
"# $Name",
(Get-ScriptInitializer "zoxide init powershell | Out-String")
) -join [System.Environment]::NewLine);
};