Skip to content
프로젝트

소개

Bash, Zsh, Fish, PowerShell, Nushell에서 1,000개 이상의 명령어 자동 완성을 제공합니다.

개발 도구

이 수치를 측정하는 방법

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.

측정된 스타 증가

in 24h
0
in 7 days
+4
in 15 days
+7
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

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.

관련 프로젝트 살펴보기

불러오는 중…