跳至内容

PSCompletions and Carapace

TIP

WARNING

  • 部分补全可能因为编码错误而乱码
  • 可能需要修改输出编码为 UTF-8
powershell
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = [System.Text.UTF8Encoding]::new()

使用 Scoop

  1. 添加 abyss bucket (GithubGitee)

    sh
    scoop bucket add abyss https://github.com/abgox/abyss
    sh
    scoop bucket add abyss https://gitee.com/abgox/abyss
  2. 安装它

    sh
    scoop install abyss/rsteube.Carapace
  3. 将以下内容加入到 $Profile

powershell
# Carapace
carapace _carapace | Out-String | Invoke-Expression