diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo index ffc9fcdc8..ebff99310 100644 --- a/plugins/cargo/_cargo +++ b/plugins/cargo/_cargo @@ -77,7 +77,7 @@ _cargo() { '*:args:_default' ;; - build) + build|b) _arguments -s -S $common $parallel $features $msgfmt $triple $target $manifest \ '--all-targets[equivalent to specifying --lib --bins --tests --benches --examples]' \ "${command_scope_spec[@]}" \ @@ -86,7 +86,7 @@ _cargo() { '--build-plan[output the build plan in JSON]' \ ;; - check) + check|c) _arguments -s -S $common $parallel $features $msgfmt $triple $target $manifest \ '--all-targets[equivalent to specifying --lib --bins --tests --benches --examples]' \ "${command_scope_spec[@]}" \ @@ -224,7 +224,7 @@ _cargo() { _arguments -s -S $common $manifest ;; - run) + run|r) _arguments -s -S $common $parallel $features $msgfmt $triple $target $manifest \ '--example=[name of the bin target]:name' \ '--bin=[name of the bin target]:name' \ @@ -259,7 +259,7 @@ _cargo() { '*: :_guard "^-*" "query"' ;; - test) + test|t) _arguments -s -S $common $parallel $features $msgfmt $triple $target $manifest \ '--test=[test name]: :_cargo_test_names' \ '--no-fail-fast[run all tests regardless of failure]' \