diff --git a/src/_vagrant b/src/_vagrant index f7d02a4..b0f4b83 100644 --- a/src/_vagrant +++ b/src/_vagrant @@ -76,7 +76,7 @@ __plugin_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\-]\+\)"\?''\?' | awk '{print $NF}' | sed 's/''//g'|sed 's/\"//g' ) } __vagrant-box ()