From 4571ef9962f501ad3cc188e26c9f66f198f9be0e Mon Sep 17 00:00:00 2001 From: Paul Chechetin Date: Mon, 5 May 2014 11:38:18 +0400 Subject: [PATCH] Allow underline and dash for machine name --- plugins/vagrant/_vagrant | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant index d55ae6709..aa18da474 100644 --- a/plugins/vagrant/_vagrant +++ b/plugins/vagrant/_vagrant @@ -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 ()