dsifford / yarn-completion

Bash completion for Yarn
MIT License
277 stars 25 forks source link

Colon-contained completion glitches #34

Closed takuyahara closed 5 years ago

takuyahara commented 5 years ago

When I type a text that contains colon(:) and push tab to complete result glitches like this.

$ yarn test # push tab key
$ yarn test:e2e # ok, this is expected

$ yarn test: # push tab key
$ yarn test:test:e2e # completed text comes after colon
dsifford commented 5 years ago

My laptop is running the same OS and bash version as you list and I don't have this issue. Could be an issue with your bash initialization and/or shell options. Hard to know for sure.

takuyahara commented 5 years ago

Thank you for your hint! I found the solution here. https://gist.github.com/stecman/6cc2769b135f272b673a#file-bash_completion_fill-sh-L191-L195