Allow underline and dash for machine name

This commit is contained in:
Paul Chechetin 2014-05-05 11:38:18 +04:00
commit 4571ef9962

View file

@ -49,7 +49,7 @@ __box_list ()
__vm_list ()
{
_wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define *:\([a-zA-Z0-9]\+\)' 2>/dev/null | cut -d: -f2)
_wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define *:\([-_a-zA-Z0-9]\+\)' 2>/dev/null | cut -d: -f2)
}
__vagrant-box ()