Skip to content

Commit

Permalink
fix: completion of "ve" did not display the plugin 'version'
Browse files Browse the repository at this point in the history
  • Loading branch information
glhez committed Jan 26, 2020
1 parent fa154d1 commit 88b795c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bash_completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,8 @@ _mvn()
done

else
if echo "${common_lifecycle_phases}" | tr '|' '\n' | \grep -q -e "^${cur}" ; then
COMPREPLY=( $(compgen -S ' ' -W "${common_lifecycle_phases}" -- ${cur}) )
elif echo "${common_plugins}" | tr '|' '\n' | \grep -q -e "^${cur}"; then
COMPREPLY=( $(compgen -S ':' -W "${common_plugins}" -- ${cur}) )
fi
IFS=$'\n'
COMPREPLY=( $( echo "${common_lifecycle_phases}|${common_plugins//|/:|}:" | tr '|' '\n' | \grep -e "^${cur}" ) )
fi

__ltrim_colon_completions "$cur"
Expand Down

0 comments on commit 88b795c

Please sign in to comment.