This commit is contained in:
Will Weaver 2013-10-13 12:22:33 -07:00
commit 2582a970c0
2 changed files with 2 additions and 4 deletions

4
.gitignore vendored
View file

@ -1,8 +1,6 @@
locals.zsh
log/.zsh_history
projects.zsh
custom/example
custom/example.zsh
custom/
*.swp
!custom/example.zshcache
cache/

View file

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