# Copyright 2026 Nadeŭka <[email protected]>
# Distributed under the terms of the GNU General Public License v2
EAPI=9
DESCRIPTION='Automagical shell alias completion'
HOMEPAGE=https://github.com/cykerway/complete-alias
if [[ $PV == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="$HOMEPAGE.git"
else
SRC_URI="$HOMEPAGE/archive/refs/tags/$PV.tar.gz -> $P.tar.gz"
KEYWORDS='*'
fi
LICENSE=GPL-3
SLOT=0
RDEPEND='>=app-shells/bash-4.4 app-shells/bash-completion'
src_install() {
insinto /usr/share/bash-completion/helpers
doins complete_alias
einstalldocs
}