https://github.com/maandree/auto-auto-complete
Autogenerate shell auto-completion scripts
https://github.com/maandree/auto-auto-complete
auto-completion generator
Last synced: 4 days ago
JSON representation
Autogenerate shell auto-completion scripts
- Host: GitHub
- URL: https://github.com/maandree/auto-auto-complete
- Owner: maandree
- License: isc
- Created: 2012-10-28T16:16:45.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2026-05-09T13:30:19.000Z (about 2 months ago)
- Last Synced: 2026-05-09T15:37:43.200Z (about 2 months ago)
- Topics: auto-completion, generator
- Language: Python
- Homepage: https://codeberg.org/maandree/auto-auto-complete
- Size: 88.9 KB
- Stars: 28
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
NAME
auto-auto-complete - Auto-generate shell auto-completion scripts
SYNOPSIS
auto-auto-complete shell (-w command | -o output -s source [variable=value] ...)
DESCRIPTION
auto-auto-complete generates a shell auto-completion script.
auto-auto-complete provides a LISP-like declarative language for
creating auto-completion scripts for commands in a shell-agnostic way.
However, auto-auto-complete's language is limited in comparison to
for example raw auto-completion scripts for the bash shell, however
it is well enough for most projects.
OPTIONS
-o, --output output
The name of the file to generate.
-s, -f, --source, --file source
The name of the file to parse.
-w, --where command
Print where, sans the path prefix, the script shall be
installed if the name of the command is command.
For example, for the command "cmd", auto-auto-complete bash
-w cmd would print "/share/bash-completion/completions/cmd",
meaning that the script shall be installed to
"/usr/share/bash-completion/completions/cmd" or
"/usr/local/share/bash-completion/completions/cmd" depending
on the path prefix used for the package.
OPERANDS
shell
The shell the auto-completion script shall be generated
for. Currently supported shells are: bash, fish, and zsh.
variable=value
Define a variable to have a specific value.
Defining a variable multiple times creates an array
of values for that variable.
RATIONALE
No one really wants to write shell auto-completion scripts,
especially not for more than one shell. But of course we
want to have it.
SEE ALSO
bash-completion, bash(1), fish(1), zsh(1)