SHELL-COMPLETION.ECLASS

Section: eclass-manpages (5)
Updated: Jul 2026
Index Return to Main Contents

NAME

shell-completion.eclass - a few quick functions to install various shell completion files

DESCRIPTION

This eclass provides a standardised way to install shell completions for popular shells.

SUPPORTED EAPIS

7 8 9

FUNCTIONS

get_bashcompdir
Get the bash-completion completions directory.
dobashcomp <file> [...]
Install bash-completion files passed as args. Has EAPI-dependent failure behavior (like doins).
newbashcomp <file> <newname>
Install bash-completion file under a new name. Has EAPI-dependent failure behavior (like newins).
bashcomp_alias <basename> <alias>...
Alias <basename> completion to one or more commands (<alias>es).
get_fishcompdir
Return value: the fish completions directory (with EPREFIX)
get_zshcompdir
Return value: the zsh completions directory (with EPREFIX)
dofishcomp <file...>
Install fish completion files passed as args.
dozshcomp <file...>
Install zsh completion files passed as args.
newfishcomp <file> <newname>
Install fish file under a new name.
newzshcomp <file> <newname>
Install zsh file under a new name.

AUTHORS

Alfred Wingate <parona@protonmail.com>

MAINTAINERS

Jonas Frei <freijon@pm.me>
Florian Schmaus <flow@gentoo.org>
mgorny@gentoo.org

REPORTING BUGS

Please report bugs via https://bugs.gentoo.org/

FILES

shell-completion.eclass

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/shell-completion.eclass


Index

NAME
DESCRIPTION
SUPPORTED EAPIS
FUNCTIONS
AUTHORS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:27:00 GMT, July 04, 2026