概要
Bash、Zsh、Fish、PowerShell、Nushellで使える、1,000以上のコマンド向け補完機能です。
開発ツールできること
- Completions for 300+ commands, with platform-specific variants where needed.
- Provide skills that generate completion scripts from help text or man pages automatically.
- Dynamic completion leads to fewer scripts loading and faster terminal startup.
- Cross shells: bash/zsh/powershell/fish/nushell.
計測したスター増加
- 24時間
- 0
- 7日間
- +4
- 15日間
- +7
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルArgc-completions
{bash,zsh,fish,powershell,nushell}-completions for 300+ commands.
Features
- Completions for 300+ commands, with platform-specific variants where needed.
- Provide skills that generate completion scripts from help text or man pages automatically.
- Dynamic completion leads to fewer scripts loading and faster terminal startup.
- Cross shells: bash/zsh/powershell/fish/nushell.
- Cross platforms: linux, macOS, and Windows.
Amazing features that native completion lacks or is difficult to implement
| Feature | Showcase |
|---|---|
| Parallel Computing | _choice_ref() {
|
| Complete multiple values (comma-separated) |
|
| Complete multiple parts | |
| Complete key-value pairs | |
| Complete for plugins (git,cargo ...) |
|
| Delegate to another command (sudo,doas,npx...) |
|
| Style & color |
Getting Started
git clone https://github.com/sigoden/argc-completions.git
cd argc-completions
./install.sh bash # bash/zsh/fish/powershell/nushell
install.sh installs or verifies the required tools, then adds a managed # >>> argc-completions block to your shell rc file. Start a new shell afterwards to load the completions.
Managing completions
After installation, bin/ is on PATH, so the argc-completions command is available (you can also run ./bin/argc-completions directly).
$ argc-completions --help
Manage the argc-completions checkout
Usage: argc-completions <COMMAND>
Commands:
list List available completion scripts [aliases: ls]
init-shell Install or refresh shell integration [aliases: init]
doctor Check the installation and dependencies
upgrade Update this checkout from its git upstream
Shell configuration
The generated integration sets these environment variables:
| Variable | Meaning |
|---|---|
ARGC_COMPLETIONS_ROOT |
Checkout root directory |
ARGC_COMPLETIONS_PATH |
Where completion scripts are discovered; defaults to completions/<os> plus completions |
ARGC_SCRIPTS |
Space-separated allowlist; overrides the directory scan |
ARGC_SCRIPTS_EXCLUDE |
Space-separated denylist; removed after scanning |
For example, to load completions for only a few commands:
export ARGC_SCRIPTS="git cargo make"
export ARGC_SCRIPTS_EXCLUDE="gitk"
Uninstall
- Delete the
argc-completionsdirectory that you cloned. - Remove the
# >>> argc-completionsblock from your shell rc file (~/.bashrc,~/.zshrc, ...).install.shwrites a.argc-completions.bakbackup before editing an existing rc file.
Generate your own completion
Completion generation is handled by the argc-completions-generate agent skill. Ask a coding agent to add or update a command's completion, for example:
@argc-completions-generate rg
The skill reads the command's help/man output, generates the script, and verifies it automatically — no manual editing required.
License
Argc-completions is made available under the terms of the MIT License.
See the LICENSE file for license details.
関連プロジェクトを探す
読み込み中…