From 7bf946eba1e4f47bd3226e63f027852d28dfe37b Mon Sep 17 00:00:00 2001 From: Haim Ashkenazi Date: Mon, 23 Dec 2013 22:08:39 +0200 Subject: [PATCH] Fix vagrant vm name matching: - escaping of single quotes - match older vagrant files which uses keywords as vm names. --- src/_vagrant | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_vagrant b/src/_vagrant index 06d641e..f36fee6 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 | awk '{print $NF}' | sed 's/''//g'|sed 's/\"//g' ) + _wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define * ['\''":]\?\([a-zA-Z0-9\-]\+\)['\''"]\?' 2>/dev/null | awk '{print $NF}' | sed 's/'\''//g'|sed 's/\"//g'|sed 's/^://' ) } __vagrant-box ()