PortValhalla/scripts/Windows/Config/chocolatey/Install.ps1

17 lines
454 B
PowerShell

#!/bin/pwsh
powershell -c 'New-Item -Force $PROFILE';
choco install --force chocolatey;
Copy-Item -Force (powershell -c '$PROFILE') $PROFILE;
Push-Location ~;
$files = @((powershell -c '$PROFILE'), $PROFILE) | ForEach-Object { Resolve-Path -Relative $_ };
foreach ($profileFile in $files) {
Copy-Item -Force "~/$profileFile" "C:/Users/Default/$profileFile";
}
Pop-Location;
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1";