Basically following codes will be done in PowerShell
-
Enable
Sudo
features in Windows. Windows tells us how to enable it at first use -
Set
$env.XDG_CONFIG_HOME
in Windows system wide. At least, nushell respects it (Not all of "XDG Base Directory")sudo pwsh --command '[Environment]::SetEnvironmentVariable("XDG_CONFIG_HOME", "$HOME\.config", "Machine")'
-
Download windows helper binary from artifacts
-
New session of pwsh
./winit-conf.exe run Install-Module -Name PSFzfHistory # $PROFILE is an "Automatic Variables", not ENV # https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.4 ./winit-conf.exe generate -path="config/powershell/Profile.ps1" > "$PROFILE" ./winit-reg.exe list ./winit-reg.exe run --all
-
Install some tools
# Basically this may be same output of above `winit-conf.exe` log # Pick-up the winget-*.json outputs $env:TMP # => C:\Users\YOU\AppData\Local\Temp winget import --import-file "C:\Users\YOU\AppData\Local\Temp\winitRANDOM1\winget-pkgs-basic.json" # Optional winget import --import-file "C:\Users\YOU\AppData\Local\Temp\winitRANDOM2\winget-pkgs-storage.json" winget import --import-file "C:\Users\YOU\AppData\Local\Temp\winitRANDOM3\winget-pkgs-entertainment.json"
-
Remove needless pre-installed tools. Pick up from bulk-uninstall.ps
-
Enable Bitlocker and backup the restore key