Add scripts for setting up chocolatey
This commit is contained in:
parent
b797c4c962
commit
45afef2301
3 changed files with 12 additions and 0 deletions
|
@ -33,6 +33,8 @@ function Restore-PersonalApps([Context] $context) {
|
|||
Install-PersonalDrivers $context;
|
||||
}
|
||||
|
||||
. "$PSScriptRoot/../Software/chocolatey/Install.ps1";
|
||||
|
||||
# Backed up applications
|
||||
Restore-Git $context;
|
||||
Restore-LogitechGHUB $context;
|
||||
|
|
4
scripts/Windows/Software/chocolatey/Install.ps1
Normal file
4
scripts/Windows/Software/chocolatey/Install.ps1
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/pwsh
|
||||
. "$PSScriptRoot/profile.ps1";
|
||||
powershell "$PSScriptRoot/profile.ps1";
|
||||
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1";
|
6
scripts/Windows/Software/chocolatey/profile.ps1
Normal file
6
scripts/Windows/Software/chocolatey/profile.ps1
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/pwsh
|
||||
if (-not (Test-Path -PathType Leaf $PROFILE)) {
|
||||
New-Item -Force $PROFILE;
|
||||
}
|
||||
|
||||
choco install --force chocolatey;
|
Loading…
Reference in a new issue