We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe69226 commit 91ebdd8Copy full SHA for 91ebdd8
bash_completion.bash
@@ -242,11 +242,8 @@ _mvn()
242
done
243
244
else
245
- if echo "${common_lifecycle_phases}" | tr '|' '\n' | \grep -q -e "^${cur}" ; then
246
- COMPREPLY=( $(compgen -S ' ' -W "${common_lifecycle_phases}" -- ${cur}) )
247
- elif echo "${common_plugins}" | tr '|' '\n' | \grep -q -e "^${cur}"; then
248
- COMPREPLY=( $(compgen -S ':' -W "${common_plugins}" -- ${cur}) )
249
- fi
+ IFS=$'\n'
+ COMPREPLY=( $( echo "${common_lifecycle_phases}|${common_plugins//|/:|}:" | tr '|' '\n' | \grep -e "^${cur}" ) )
250
fi
251
252
__ltrim_colon_completions "$cur"
0 commit comments