New comment by CameronNemo on void-packages repository https://github.com/void-linux/void-packages/pull/35768#issuecomment-1186608319 Comment: We could vendor this (in files) to replace the generated cargo.bash, and name the completion cargo-rustup: ``` if command -v rustc >/dev/null 2>&1; then if [ "/usr" != "$(rustc --print sysroot)" ]; then source "$(rustc --print sysroot)"/etc/bash_completion.d/cargo fi fi ``` Ideally we would monitor the generated code with a checksum... But that is a lot of effort compared to asking users to install a subpackage.