Make software name available in scripts
This commit is contained in:
parent
50b4a30256
commit
5ae07886c8
15 changed files with 116 additions and 50 deletions
scripts/Common/Software
|
@ -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!",
|
||||
|
|
|
@ -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 (
|
||||
@(
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue