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/ 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 ()