shell-completion.eclass

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/