Bash completion for Maven escapes colon

前端 未结 4 1103
粉色の甜心
粉色の甜心 2020-12-30 06:42

I added bash completion for Maven following the docs:

http://maven.apache.org/guides/mini/guide-bash-m2-completion.html

Everything works well except for goal

4条回答
  •  说谎
    说谎 (楼主)
    2020-12-30 07:16

    From Bash FAQ E13.

    Just after the complete command in the script you linked to, issue this command to remove the colon from the list of completion word break characters:

    COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
    

提交回复
热议问题