PSCompletions and Carapace
TIP
- Carapace is a command-completion library.
- Github:https://github.com/carapace-sh/carapace-bin
- PSCompletions can work with Carapace by following these steps.
WARNING
- Some completions may be garbled due to encoding errors.
- You may need to set the output encoding to
UTF-8.
powershell
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = [System.Text.UTF8Encoding]::new()Use Scoop
Add the abyss bucket via Github or Gitee.
shscoop bucket add abyss https://github.com/abgox/abyssshscoop bucket add abyss https://gitee.com/abgox/abyssInstall it.
shellscoop install abyss/rsteube.CarapaceAdd the following content into
$Profile.powershell# Carapace carapace _carapace | Out-String | Invoke-Expression