Skip to content

Commit 91ebdd8

Browse files
committed
fix: completion of "ve" did not display the plugin 'version'
1 parent fe69226 commit 91ebdd8

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
@@ -242,11 +242,8 @@ _mvn()
242242
done
243243

244244
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
245+
IFS=$'\n'
246+
COMPREPLY=( $( echo "${common_lifecycle_phases}|${common_plugins//|/:|}:" | tr '|' '\n' | \grep -e "^${cur}" ) )
250247
fi
251248

252249
__ltrim_colon_completions "$cur"

0 commit comments

Comments
 (0)