From e726f4d251237b8e6cd40584b2fa642b569e42c0 Mon Sep 17 00:00:00 2001 From: Will Weaver Date: Wed, 19 Dec 2012 14:36:30 -0500 Subject: [PATCH 1/2] Better support for different variations of vm definitions --- plugins/vagrant/_vagrant | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant index 9af8cb036..09c332f73 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 | awk '{print substr($2, 2)}') } __vagrant-box () From 59ef23d60d06392c32bffdebdeef88934c8b5269 Mon Sep 17 00:00:00 2001 From: Will Weaver Date: Mon, 7 Oct 2013 07:51:38 -0400 Subject: [PATCH 2/2] .gitignore: Make entire custom directory ignored again --- .gitignore | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5db11ce5c..52a5ff165 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ locals.zsh log/.zsh_history projects.zsh -custom/example -custom/example.zsh +custom/ *.swp -!custom/example.zshcache cache/