Install chocolatey profile for all future users
This commit is contained in:
parent
b65f144d45
commit
fa035a29b2
4 changed files with 17 additions and 8 deletions
scripts/Windows/Config/chocolatey
16
scripts/Windows/Config/chocolatey/Install.ps1
Normal file
16
scripts/Windows/Config/chocolatey/Install.ps1
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/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";
|
Loading…
Add table
Add a link
Reference in a new issue