PSCompletions
and argc-completions
TIP
- argc-completions is a command-completion repository for 1000+ commands.
- PSCompletions can work with argc-completions by following these steps
Add
abyss
with Github or Gitee repository.pwshscoop bucket add abyss https://github.com/abgox/abyss.git
pwshscoop bucket add abyss https://gitee.com/abgox/abyss.git
Install Argc-completions.
pwshscoop install abyss/Argc-completions
Add the following code into
$Profile
.
powershell
# argc-completions
# To add completions for only the specified command, modify next line e.g. $argc_scripts = @("cargo", "git")
$argc_scripts = $env:ARGC_COMPLETIONS_PATH -split [System.IO.Path]::PathSeparator | Get-ChildItem -File | ForEach-Object { $_.BaseName }
argc --argc-completions powershell $argc_scripts | Out-String | Invoke-Expression
$PSCompletions.argc_completions($argc_scripts)
$PSCompletions.argc_completions
accepts an array of commands.- e.g.
@("cargo", "git")
- e.g.