dev-util/rustup: add fish shell completion generation

Now, on installation, rustup generates and adds fish shell completions

Closes: https://bugs.gentoo.org/966940
Signed-off-by: Igna Martinoli <ignamartinoli@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44855
Closes: https://github.com/gentoo/gentoo/pull/44855
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
ignamartinoli@proton.me 2025-12-01 16:18:52 -03:00 committed by Arthur Zamarin
parent 1e9296f4d5
commit 4cd8fa4b62
No known key found for this signature in database
GPG Key ID: 02A0AF503D120504
2 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,8 @@ src_install() {
dobashcomp "${T}/${PN}"
./rustup completions zsh > "${T}/_${PN}" || die
dozshcomp "${T}/_${PN}"
./rustup completions fish > "${T}/${PN}.fish" || die
dofishcomp "${T}/${PN}.fish"
else
ewarn "Shell completion files not installed! Install them manually with '${PN} completions --help'"
fi

View File

@ -80,6 +80,8 @@ src_install() {
dobashcomp "${T}/${PN}"
./rustup completions zsh > "${T}/_${PN}" || die
dozshcomp "${T}/_${PN}"
./rustup completions fish > "${T}/${PN}.fish" || die
dofishcomp "${T}/${PN}.fish"
else
ewarn "Shell completion files not installed! Install them manually with '${PN} completions --help'"
fi