stecman / symfony-console-completion

Automatic tab-key completion for Symfony console application options, arguments and parameters
MIT License
420 stars 26 forks source link

Added handling for the colon character #1

Closed duncan3dc closed 9 years ago

duncan3dc commented 10 years ago

It is common to group commands into namespaces by using a colon in the command name to separate them. However standard bash completion treats the colon as a wordbreak (useful for ssh/scp) This change allows bash completion to work with commands including a colon character Based on the answer from this stack overflow quetion: http://stackoverflow.com/questions/10528695/how-to-reset-comp-wordbreaks-without-effecting-other-completion-script

stecman commented 9 years ago

Thanks for your contribution @duncan3dc. I've been considering refactoring this module for a while, as it was originally thrown together quite quickly. Your PR inspired me to put some more work into it!