diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-09-08 23:42:56 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-09-08 23:43:07 -0700 |
commit | 6ffd3532933434373dbf15979146b839c6210b3e (patch) | |
tree | 6484748ae4f5415d0b7e21cae4e305e6bf84dc0e /dev-util | |
parent | dev-util/rustup: new package, rust toolchain installer (diff) | |
download | gentoo-6ffd3532933434373dbf15979146b839c6210b3e.tar.gz gentoo-6ffd3532933434373dbf15979146b839c6210b3e.tar.bz2 gentoo-6ffd3532933434373dbf15979146b839c6210b3e.zip |
dev-util/rustup: add shell completions
Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/rustup/rustup-1.22.1.ebuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/dev-util/rustup/rustup-1.22.1.ebuild b/dev-util/rustup/rustup-1.22.1.ebuild index f39906889843..6b91f9160037 100644 --- a/dev-util/rustup/rustup-1.22.1.ebuild +++ b/dev-util/rustup/rustup-1.22.1.ebuild @@ -239,7 +239,7 @@ zeroize-1.1.0 zeroize_derive-1.0.0 " -inherit cargo +inherit bash-completion-r1 cargo HOME_CRATE_COMMIT="a243ee2fbee6022c57d56f5aa79aefe194eabe53" @@ -284,6 +284,15 @@ src_install() { einstalldocs exeinto /usr/share/rustup newexe "${FILESDIR}/symlink_rustup.sh" symlink_rustup + + ln -s "${ED}/usr/bin/rustup-init" rustup || die + ./rustup completions bash rustup > "${T}/rustup" || die + ./rustup completions zsh rustup > "${T}/_rustup" || die + + dobashcomp "${T}/rustup" + + insinto /usr/share/zsh/site-functions + doins "${T}/_rustup" } src_test() { |