Skip to content
Proyek

sigoden/argc-completions

Lihat di GitHub

Tentang

Pelengkapan perintah untuk bash, zsh, fish, powershell, dan nushell bagi lebih dari 1.000 perintah.

Alat pengembangan

Cara angka ini diukur

Yang 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

Asli

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 complete-git-checkout
 _choice_ref() { 
   _argc_util_parallel _choice_branch ::: _choice_tag ::: _choice_head
}
Complete multiple values
(comma-separated)
complete-dd-iflag
Complete multiple parts complete-rustup-target-add
Complete key-value pairs complete-ssh-o
Complete for plugins
(git,cargo ...)
complete-cargo-nextest
Delegate to another command
(sudo,doas,npx...)
complete-yarn-workspace
Style & color complete-colors

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

  1. Delete the argc-completions directory that you cloned.
  2. Remove the # >>> argc-completions block from your shell rc file (~/.bashrc, ~/.zshrc, ...). install.sh writes a .argc-completions.bak backup 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…