Skip to content

Commit 713fa16

Browse files
committed
fix: completion of "ve" did not display the plugin 'version'
1 parent 6f3b916 commit 713fa16

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

bash_completion.bash

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,8 @@ _mvn()
240240
done
241241

242242
else
243-
if echo "${common_lifecycle_phases}" | tr '|' '\n' | \grep -q -e "^${cur}" ; then
244-
COMPREPLY=( $(compgen -S ' ' -W "${common_lifecycle_phases}" -- ${cur}) )
245-
elif echo "${common_plugins}" | tr '|' '\n' | \grep -q -e "^${cur}"; then
246-
COMPREPLY=( $(compgen -S ':' -W "${common_plugins}" -- ${cur}) )
247-
fi
243+
IFS=$'\n'
244+
COMPREPLY=( $( echo "${common_lifecycle_phases}|${common_plugins//|/:|}:" | tr '|' '\n' | \grep -e "^${cur}" ) )
248245
fi
249246

250247
__ltrim_colon_completions "$cur"

0 commit comments

Comments
 (0)