# Copyright 2026 Nadeŭka # Distributed under the terms of the GNU General Public License v2 EAPI=9 DESCRIPTION='Script to fix bash auto-completion for aliases' HOMEPAGE=https://github.com/cykerway/complete-alias SRC_URI="https://github.com/cykerway/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" LICENSE=GPL-3 SLOT=0 KEYWORDS=amd64 RDEPEND=' >=app-shells/bash-4.4 app-shells/bash-completion ' src_install() { insinto /usr/share/${PN} doins complete_alias einstalldocs } pkg_postinst() { elog "To activate ${PN}, add the following lines to ~/.bashrc:" elog " source /usr/share/${PN}/complete_alias" elog ' complete -F _complete_alias "${!BASH_ALIASES[@]}"' }