Skip to content
Projets

sigoden/argc-completions

Voir sur GitHub

À propos

Complétion de plus de 1 000 commandes pour Bash, Zsh, Fish, PowerShell et Nushell.

Outils de développement

Comment ces chiffres sont mesurés

What you can do

  • 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.

Progression mesurée des étoiles

in 24h
0
in 7 days
+4
in 15 days
+7
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

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.

Explorer des projets similaires

Chargement…