Add cargo completion

This commit is contained in:
Nariyasu Heseri
2020-12-06 15:22:36 +09:00
parent 4a5ea95e2e
commit 4d51bfcaf4
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# cargo (Rust package manager) completion
if _binary_exists rustup && _binary_exists cargo; then
eval "$(rustup completions bash cargo)"
fi