diff --git a/src/etc/cargo.bashcomp.sh b/src/etc/cargo.bashcomp.sh index 5bfdd20ba3b..bfc64b2bbb7 100644 --- a/src/etc/cargo.bashcomp.sh +++ b/src/etc/cargo.bashcomp.sh @@ -120,7 +120,7 @@ _cargo() } && complete -F _cargo cargo -__cargo_commands=$(cargo --list 2>/dev/null | tail -n +2) +__cargo_commands=$(cargo --list 2>/dev/null | awk 'NR>1 {print $1}') _locate_manifest(){ local manifest=`cargo locate-project 2>/dev/null`