bash-it/completion/available/cargo.completion.bash

8 lines
171 B
Bash

# shellcheck shell=bash
# cargo (Rust package manager) completion
if _binary_exists rustup && _binary_exists cargo
then
eval "$(rustup completions bash cargo)"
fi