Streamline PowerShell profile installation
This commit is contained in:
parent
356611b169
commit
181a82fd24
5 changed files with 8 additions and 23 deletions
|
@ -1,7 +1,3 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context)
|
. "$PSScriptRoot/../../../Common/Config/powershell/lib.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
Add-PowerShellProfileStatement -Category "Terminal-Icons" -Statement 'Import-Module "Terminal-Icons";';
|
||||||
|
|
||||||
[Context] $context = $context;
|
|
||||||
Write-Host "Configuring Terminal-Icons";
|
|
||||||
$context.AddPowerShellProfileStatement("0_Terminal-Icons", 'Import-Module "Terminal-Icons";');
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context)
|
. "$PSScriptRoot/../../../Common/Config/powershell/lib.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
|
||||||
|
|
||||||
[Context] $context = $context;
|
|
||||||
Write-Host "Configuring posh-git";
|
Write-Host "Configuring posh-git";
|
||||||
$context.AddPowerShellProfileStatement("0_posh-git", 'Import-Module "posh-git";');
|
Add-PowerShellProfileStatement -Category "posh-git" -Statement 'Import-Module "posh-git";'
|
||||||
|
|
|
@ -69,8 +69,8 @@ function Invoke-WindowsInstallation([Context] $context)
|
||||||
Write-Host "Setting up software with default app associations";
|
Write-Host "Setting up software with default app associations";
|
||||||
. "$softwarePath/WinSCP/Install.ps1" $context;
|
. "$softwarePath/WinSCP/Install.ps1" $context;
|
||||||
. "$softwarePath/Thunderbird/Install.ps1" $context;
|
. "$softwarePath/Thunderbird/Install.ps1" $context;
|
||||||
. "$softwarePath/posh-git/Install.ps1" $context;
|
. "$softwarePath/posh-git/Install.ps1";
|
||||||
. "$softwarePath/Terminal-Icons/Install.ps1" $context;
|
. "$softwarePath/Terminal-Icons/Install.ps1";
|
||||||
. "$softwarePath/Oh My Posh/Install.ps1" $context;
|
. "$softwarePath/Oh My Posh/Install.ps1" $context;
|
||||||
$context.Set("MachineWideSoftware", 1, "DWord");
|
$context.Set("MachineWideSoftware", 1, "DWord");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context);
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
|
||||||
|
|
||||||
[Context] $context = $context;
|
|
||||||
Install-Module -AcceptLicense -Scope AllUsers -Force Terminal-Icons;
|
Install-Module -AcceptLicense -Scope AllUsers -Force Terminal-Icons;
|
||||||
powershell -c "Install-Module -Scope AllUsers -Force Terminal-Icons;";
|
powershell -c "Install-Module -Scope AllUsers -Force Terminal-Icons;";
|
||||||
. "$PSScriptRoot/../../Config/Terminal-Icons/Install.ps1" $context;
|
. "$PSScriptRoot/../../Config/Terminal-Icons/Install.ps1";
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context);
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
|
||||||
|
|
||||||
[Context] $context = $context;
|
|
||||||
Install-Module -AcceptLicense -Scope AllUsers -Force posh-git;
|
Install-Module -AcceptLicense -Scope AllUsers -Force posh-git;
|
||||||
powershell -c "Install-Module -Scope AllUsers -Force posh-git;";
|
powershell -c "Install-Module -Scope AllUsers -Force posh-git;";
|
||||||
. "$PSScriptRoot/../../Config/posh-git/Install.ps1" $context;
|
. "$PSScriptRoot/../../Config/posh-git/Install.ps1";
|
||||||
|
|
Loading…
Reference in a new issue