PSCompletions and Carapace
TIP
- Carapace 是一个命令补全库
- Github:https://github.com/carapace-sh/carapace-bin
- 通过以下步骤,可以让 PSCompletions 和 Carapace 一起工作
WARNING
- 部分补全可能因为编码错误而乱码
- 可能需要修改输出编码为
UTF-8
powershell
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = [System.Text.UTF8Encoding]::new()使用 Scoop
添加 abyss bucket (Github 或 Gitee)
shscoop bucket add abyss https://github.com/abgox/abyssshscoop bucket add abyss https://gitee.com/abgox/abyss安装它
shscoop install abyss/rsteube.Carapace将以下内容加入到
$Profile中
powershell
# Carapace
carapace _carapace | Out-String | Invoke-Expression