sigoden/argc-completions
Tentang
Pelengkapan perintah untuk bash, zsh, fish, powershell, dan nushell bagi lebih dari 1.000 perintah.
Alat pengembanganYang dapat Anda lakukan
- 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.
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +4
- dalam 15 hari
- +7
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliArgc-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.
Jelajahi proyek terkait
Memuat…