diff options
-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() { |