Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.76 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.76 KB

Windows

Installation

Basically following codes will be done in PowerShell

  1. Enable Sudo features in Windows. Windows tells us how to enable it at first use

  2. 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")'
  3. Download windows helper binary from artifacts

  4. 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
  5. 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"
  6. Remove needless pre-installed tools. Pick up from bulk-uninstall.ps

  7. Enable Bitlocker and backup the restore key

I forgot to backup Bitlocker restore key 😋

https://account.microsoft.com/devices/recoverykey may help