app-shells/zoxide: switch from bash-completion-r1 to shell-completion eclass

Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
This commit is contained in:
Leonardo Hernández Hernández 2023-07-25 23:45:55 -06:00
parent fa959fd341
commit a2e7eed1e3
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

View File

@ -119,7 +119,7 @@ CRATES="
windows_x86_64_msvc@0.48.0
"
inherit cargo bash-completion-r1
inherit cargo shell-completion
DESCRIPTION="A smarter cd command for your terminal"
HOMEPAGE="https://github.com/ajeetdsouza/zoxide"
@ -151,12 +151,8 @@ src_install() {
dodoc README.md CHANGELOG.md
newbashcomp contrib/completions/"${PN}".bash "${PN}"
insinto /usr/share/zsh/site-functions
doins contrib/completions/_"${PN}"
insinto /usr/share/fish/vendor_completions.d
doins contrib/completions/"${PN}".fish
dozshcomp contrib/completions/_"${PN}"
dofishcomp contrib/completions/"${PN}".fish
insinto /usr/share/"${PN}"
doins init.fish