argc-completions
argc-completions copied to clipboard
{bash,zsh,fish,powershell,nushell}-completions for 1000+ commands.
Argc-completions
{bash,zsh,fish,powershell,nushell}-completions for 1000+ commands.
Features
- Autocomplete for 1000+ commands (full list).
- Automatically generate completion scripts from the help text or man pages.
- Autocomplete on demand, fewer loading scripts and faster terminal startup.
- Easily Upgrade completion scripts as command are upgraded.
- Cross shells: bash/zsh/powershell/fish/nushell/elvish/xonsh/tcsh.
- Cross platforms: linux, macOS, and Windows.
Amazing features that native completion lacks or is difficult to implement
| Feature | Showcase |
|---|---|
| Parallel Computing | _choice_ref() {
|
| Fetch remote data | |
| Complete multiple values (comma-seperated) |
|
| 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
./scripts/download-tools.sh
./scripts/setup-shell.sh bash # bash/zsh/powershell/fish/nushell/elvish/xonsh/tcsh
For Windows, please run the above code in Git Bash. For macOS,
brew install bash gawk gnu-sedto avoid compatibility issues.
Tools downloaded by ./scripts/download-tools.sh:
Uninstall easily
- Delete the
argc-completionsdirectory that you have downloaded. - Undo the changes made to the shell rcfile (
~/.bashrc,~/.zshrc, ...).
Generate your own completion script
./scripts/generate.sh your-command
To learn how generate works, see docs/generate.md
To learn various complete patterns, see docs/complete-patterns.md
License
Argc-completions is made available under the terms of the MIT License.
See the LICENSE file for license details.