From c522ed9350cbe1226210a2155b597f5dfcb4b980 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 27 Jul 2023 02:36:31 +0200 Subject: [PATCH] Add `Terminal-Icons` --- scripts/Windows/Config/Terminal-Icons/Install.ps1 | 7 +++++++ scripts/Windows/OS/Install.ps1 | 1 + scripts/Windows/Software/Terminal-Icons/Install.ps1 | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 scripts/Windows/Config/Terminal-Icons/Install.ps1 create mode 100644 scripts/Windows/Software/Terminal-Icons/Install.ps1 diff --git a/scripts/Windows/Config/Terminal-Icons/Install.ps1 b/scripts/Windows/Config/Terminal-Icons/Install.ps1 new file mode 100644 index 00000000..d6953fd9 --- /dev/null +++ b/scripts/Windows/Config/Terminal-Icons/Install.ps1 @@ -0,0 +1,7 @@ +#!/bin/pwsh +param($context) +. "$PSScriptRoot/../../Scripts/Context.ps1"; + +[Context] $context = $context; +Write-Host "Configuring Terminal-Icons"; +$context.AddPowerShellProfileStatement("Terminal-Icons", 'Import-Module "Terminal-Icons";'); diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 6dedf262..b26758ac 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -62,6 +62,7 @@ function Invoke-WindowsInstallation([Context] $context) . "$softwarePath/WinSCP/Install.ps1" $context; . "$softwarePath/Thunderbird/Install.ps1" $context; . "$softwarePath/posh-git/Install.ps1" $context; + . "$softwarePath/Terminal-Icons/Install.ps1" $context; $context.Set("MachineWideSoftware", 1, "DWord"); } diff --git a/scripts/Windows/Software/Terminal-Icons/Install.ps1 b/scripts/Windows/Software/Terminal-Icons/Install.ps1 new file mode 100644 index 00000000..0304330d --- /dev/null +++ b/scripts/Windows/Software/Terminal-Icons/Install.ps1 @@ -0,0 +1,8 @@ +#!/bin/pwsh +param($context); +. "$PSScriptRoot/../../Scripts/Context.ps1"; + +[Context] $context = $context; +Install-Module -AcceptLicense -Scope AllUsers -Force Terminal-Icons; +powershell -c "Install-Module -Scope AllUsers -Force Terminal-Icons;"; +. "$PSScriptRoot/../../Config/Terminal-Icons/Install.ps1" $context;