1. 安装

    Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
    iwr -useb https://scoop.201704.xyz | iex
  2. 切换国内镜像仓库

    scoop bucket add scoop-cn https://gh-proxy.com/https://github.com/duzyn/scoop-cn
  3. 移动已经安装的软件

    Get-ChildItem -Path "$env:USERPROFILE\scoop\apps" -Recurse -Filter "install.json" | ForEach-Object {
    (Get-Content -Path $_.FullName -Raw) -replace '"bucket": "(main|extras|versions|nirsoft|sysinternals|php|nerd-fonts|nonportable|java|games)"', '"bucket": "scoop-cn"' | Set-Content -Path $_.FullName
    }