Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/etc/cargo.bashcomp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ _cargo()
local opt_verbose='-v --verbose'
local opt_quiet='-q --quiet'
local opt_color='--color'
local opt_common="$opt_help $opt_verbose $opt_quiet $opt_color"
local opt_config='--config'
local opt_common="$opt_help $opt_verbose $opt_quiet $opt_color $opt_config"
local opt_pkg_spec='-p --package --all --exclude --workspace'
local opt_pkg='-p --package'
local opt_feat='-F --features --all-features --no-default-features'
Expand Down Expand Up @@ -143,6 +144,9 @@ _cargo()
--target-dir|--path)
_filedir -d
;;
--config)
_filedir
;;
help)
_ensure_cargo_commands_cache_filled
COMPREPLY=( $( compgen -W "$__cargo_commands_cache" -- "$cur" ) )
Expand Down