BASH-COMPLETION-R1.ECLASS

Section: eclass-manpages (5)
Updated: Nov 2024
Index Return to Main Contents

NAME

bash-completion-r1.eclass - A few quick functions to install bash-completion files

SUPPORTED EAPIS

7 8

EXAMPLE

EAPI=8

src_configure() {
        econf \
                --with-bash-completion-dir="$(get_bashcompdir)"
}

src_install() {
        default

        newbashcomp contrib/${PN}.bash-completion ${PN}
}

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).

MAINTAINERS

[email protected]

REPORTING BUGS

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

FILES

bash-completion-r1.eclass

SEE ALSO

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


Index

NAME
SUPPORTED EAPIS
EXAMPLE
FUNCTIONS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:27:01 GMT, November 25, 2024