mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
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:
parent
1e9296f4d5
commit
4cd8fa4b62
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user