96e4e5dd032d2df75f87d5b3e5594d527c655b16
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #2811 from stucki/multiple-vagrant-machines
Support dynamically defined Vagrant machines
Diff
1diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
2index f842b4fbbf529d7857f5ff17641e40d7fc90229f..0c82acd42315cfc73502fdafff1cc863b995ea4d 100644
3--- a/plugins/vagrant/_vagrant
4+++ b/plugins/vagrant/_vagrant
5@@ -57,6 +57,7 @@ __box_list ()
6 __vm_list ()
7 {
8 _wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define *[:"]\([a-zA-Z0-9_-]\+\)' 2>/dev/null | awk '{print substr($2, 2)}')
9+ _wanted application expl 'command' compadd $(command ls .vagrant/machines/ 2>/dev/null)
10 }
11
12 __vagrant-box ()