Skip to content

Commit

Permalink
Support dynamically defined Vagrant machines
Browse files Browse the repository at this point in the history
  • Loading branch information
stucki committed Sep 3, 2014
1 parent a8ef111 commit ae901fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/vagrant/_vagrant
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ __box_list ()
__vm_list ()
{
_wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define *[:"]\([a-zA-Z0-9_-]\+\)' 2>/dev/null | awk '{print substr($2, 2)}')
_wanted application expl 'command' compadd $(command ls .vagrant/machines/ 2>/dev/null)
}

__vagrant-box ()
Expand Down

0 comments on commit ae901fa

Please sign in to comment.