178b5224e830845e45070ef803fcdb5a3f468dca
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #1302 from cybozuty/master
Vagrant plugin: Rendering the 'vagrant box (remove|repackage)' completion code independant of Vagrant implementation details.
Diff
1diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
2index 9af8cb0368f7ae49f9171f1d4cfb1136ab0aa795..d55ae6709037978f7e133d420e5acb874d2711a7 100644
3--- a/plugins/vagrant/_vagrant
4+++ b/plugins/vagrant/_vagrant
5@@ -44,7 +44,7 @@ __task_list ()
6
7 __box_list ()
8 {
9- _wanted application expl 'command' compadd $(command ls -1 $HOME/.vagrant/boxes 2>/dev/null| sed -e 's/ /\\ /g')
10+ _wanted application expl 'command' compadd $(command vagrant box list | sed -e 's/ /\\ /g')
11 }
12
13 __vm_list ()